diff --git a/librashader-reflect/src/front/naga.rs b/librashader-reflect/src/front/naga.rs index f48624f..ad0389a 100644 --- a/librashader-reflect/src/front/naga.rs +++ b/librashader-reflect/src/front/naga.rs @@ -18,10 +18,14 @@ pub fn compile_spirv(source: &ShaderSource) -> Result::parse(&loaded) + .unwrap(); + println!("{:#}", ast.compile().unwrap()); + println!("--- naga glsl---"); + println!("{:#}", glsl_out); + println!("--- naga wgsl---"); + println!("{:#}", wgsl) + } } diff --git a/librashader-reflect/src/front/shaderc.rs b/librashader-reflect/src/front/shaderc.rs index 4093969..a7b44ad 100644 --- a/librashader-reflect/src/front/shaderc.rs +++ b/librashader-reflect/src/front/shaderc.rs @@ -123,14 +123,7 @@ pub fn compile_spirv(source: &ShaderSource) -> Result::parse(&loaded) - .unwrap(); - println!("{:#}", ast.compile().unwrap()); - println!("--- naga glsl---"); - println!("{:#}", glsl_out); - println!("--- naga wgsl---"); - println!("{:#}", wgsl) - } }