remove comments
This commit is contained in:
parent
50722089ef
commit
724ad16c95
@ -19,13 +19,9 @@ pub fn glsl_to_spirv(glsl_source: &str, stage: ShaderStage) -> Vec<u32> {
|
|||||||
let shader_kind: shaderc::ShaderKind = stage.into();
|
let shader_kind: shaderc::ShaderKind = stage.into();
|
||||||
let mut compiler = shaderc::Compiler::new().unwrap();
|
let mut compiler = shaderc::Compiler::new().unwrap();
|
||||||
let options = shaderc::CompileOptions::new().unwrap();
|
let options = shaderc::CompileOptions::new().unwrap();
|
||||||
// options.add_macro_definition("EP", Some("main"));
|
|
||||||
let binary_result = compiler.compile_into_spirv(
|
let binary_result = compiler.compile_into_spirv(
|
||||||
glsl_source, shader_kind,
|
glsl_source, shader_kind,
|
||||||
"shader.glsl", "main", Some(&options)).unwrap();
|
"shader.glsl", "main", Some(&options)).unwrap();
|
||||||
|
|
||||||
// let text_result = compiler.compile_into_spirv_assembly(
|
|
||||||
// glsl_source, shader_kind,
|
|
||||||
// "shader.glsl", "main", Some(&options)).unwrap();
|
|
||||||
binary_result.as_binary().into()
|
binary_result.as_binary().into()
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user