fix the segfault
This commit is contained in:
@@ -142,9 +142,6 @@ fn compile_replacement_shader(name: &str, entry_point: String, stage: naga::Shad
|
||||
}
|
||||
|
||||
fn main() {
|
||||
println!("cargo::rerun-if-changed=build.rs");
|
||||
println!("cargo::rerun-if-changed=Cargo.lock");
|
||||
|
||||
if std::fs::exists("shaders_out").unwrap() {
|
||||
std::fs::remove_dir_all("shaders_out").unwrap();
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")]
|
||||
#![recursion_limit = "256"]
|
||||
/**
|
||||
* Defines the [Tape] asset, which responds to a Tape Drive tape.
|
||||
*/
|
||||
|
||||
@@ -31,21 +31,21 @@ impl SphereTapeBuilder {
|
||||
let pos = tape.push_instruction(
|
||||
SSAOpcodeSized {
|
||||
opcode: SSAOpcode::SSAPosition,
|
||||
size: 1,
|
||||
size: 1,
|
||||
},
|
||||
vec![],
|
||||
);
|
||||
let sphere = tape.push_instruction(
|
||||
SSAOpcodeSized {
|
||||
opcode: SSAOpcode::SSASDFSphere,
|
||||
size: 1,
|
||||
size: 1,
|
||||
},
|
||||
vec![pos[0], pos[1], pos[2], SSAInput::Constant(radius)],
|
||||
);
|
||||
tape.push_instruction(
|
||||
SSAOpcodeSized {
|
||||
opcode: SSAOpcode::SSAReturn,
|
||||
size: 1,
|
||||
size: 1,
|
||||
},
|
||||
sphere,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user