remove comments

This commit is contained in:
Carter Anderson 2020-01-15 01:03:33 -08:00
parent 50722089ef
commit 724ad16c95

View File

@ -19,13 +19,9 @@ pub fn glsl_to_spirv(glsl_source: &str, stage: ShaderStage) -> Vec<u32> {
let shader_kind: shaderc::ShaderKind = stage.into();
let mut compiler = shaderc::Compiler::new().unwrap();
let options = shaderc::CompileOptions::new().unwrap();
// options.add_macro_definition("EP", Some("main"));
let binary_result = compiler.compile_into_spirv(
glsl_source, shader_kind,
"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()
}