diff --git a/src/render/shader.rs b/src/render/shader.rs index 5cfe7b684d..3d6638615e 100644 --- a/src/render/shader.rs +++ b/src/render/shader.rs @@ -19,13 +19,9 @@ pub fn glsl_to_spirv(glsl_source: &str, stage: ShaderStage) -> Vec { 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() } \ No newline at end of file