fix the segfault

This commit is contained in:
2026-10-14 21:55:08 +01:00
parent ec97a06a48
commit e98dba8c45
22 changed files with 178 additions and 173 deletions
-3
View File
@@ -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
View File
@@ -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,
);