From 72607ecdf626f3ebf7bb48d8234485a6f4dde313 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 9 May 2024 13:52:18 +1000 Subject: [PATCH] ShaderGen: Fix compile error with Metal+Barriers --- src/util/shadergen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/shadergen.cpp b/src/util/shadergen.cpp index e778181bd..ef56c2590 100644 --- a/src/util/shadergen.cpp +++ b/src/util/shadergen.cpp @@ -609,7 +609,7 @@ void ShaderGen::DeclareFragmentEntryPoint( } else { - ss << "layout(set = 2, binding = 0) uniform " << (msaa ? "texture2D" : "texture2DMS") << "u_input_rt;\n"; + ss << "layout(set = 2, binding = 0) uniform " << (msaa ? "texture2DMS" : "texture2D") << " u_input_rt;\n"; ss << "#define LAST_FRAG_COLOR texelFetch(u_input_rt, int2(gl_FragCoord.xy), " << (msaa ? "gl_SampleID" : "0") << ")\n"; }