From bf840d02e4cd17e7351ad7dd219a079ae3b5a7e0 Mon Sep 17 00:00:00 2001 From: chyyran Date: Sat, 10 Dec 2022 01:25:19 -0500 Subject: [PATCH] reflect: fix spirv fragment output actually was vertex --- librashader-reflect/src/back/spirv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {