write normals to tiletree texture
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user