diff --git a/librashader-reflect/src/back/spirv.rs b/librashader-reflect/src/back/spirv.rs index 4b7ace8..8aadcda 100644 --- a/librashader-reflect/src/back/spirv.rs +++ b/librashader-reflect/src/back/spirv.rs @@ -24,7 +24,7 @@ impl FromCompilation for SpirV { compile: GlslangCompilation, ) -> Result, ShaderReflectError> { let vertex = compile.vertex.as_binary().to_vec(); - let fragment = compile.vertex.as_binary().to_vec(); + let fragment = compile.fragment.as_binary().to_vec(); let reflect = GlslReflect::try_from(compile)?; Ok(CompilerBackend { backend: WriteSpirV {