ShaderGen: Fix compile error with Metal+Barriers

This commit is contained in:
Stenzek 2024-05-09 13:52:18 +10:00
parent 7626a9bf9c
commit 72607ecdf6
1 changed files with 1 additions and 1 deletions

View File

@ -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";
}