Skip to content

Commit

Permalink
ShaderGen: Fix compile error with Metal+Barriers
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed May 9, 2024
1 parent 7626a9b commit 72607ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/shadergen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit 72607ec

Please sign in to comment.