write normals to tiletree texture

This commit is contained in:
2026-11-02 23:34:10 +00:00
parent ec7c5623de
commit d4bdb18a14
28 changed files with 702 additions and 561 deletions
+6 -1
View File
@@ -26,7 +26,12 @@ fn compile_replacement_shader(name: &str, entry_point: String, stage: naga::Shad
let shader = shader.to_string();
// Parse the source into a Module.
let module: naga::Module = naga::front::wgsl::parse_str(&shader)
let module: naga::Module =
naga::front::wgsl::Frontend::new_with_options(naga::front::wgsl::Options {
parse_doc_comments: false,
capabilities: naga::valid::Capabilities::all(),
})
.parse(&shader)
.inspect_err(|e| e.emit_to_stderr_with_path(&shader, format!("{SHADERS_IN}/{name}.wesl")))
.expect("Failed to parse WGSL");
// Validate the module.