Skip to content

Commit

Permalink
Vulkan: Fix descriptor set binding in geometry shader generator. Should
Browse files Browse the repository at this point in the history
fix #16315
  • Loading branch information
hrydgard committed Nov 1, 2022
1 parent e97d549 commit 7967da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Common/GeometryShaderGenerator.cpp
Expand Up @@ -58,7 +58,7 @@ bool GenerateGeometryShader(const GShaderID &id, char *buffer, const ShaderLangu

if (compat.shaderLanguage == GLSL_VULKAN) {
WRITE(p, "\n");
WRITE(p, "layout (std140, set = 0, binding = 3) uniform baseVars {\n%s};\n", ub_baseStr);
WRITE(p, "layout (std140, set = 1, binding = 3) uniform baseVars {\n%s};\n", ub_baseStr);
} else if (compat.shaderLanguage == HLSL_D3D11) {
WRITE(p, "cbuffer base : register(b0) {\n%s};\n", ub_baseStr);
}
Expand Down

0 comments on commit 7967da0

Please sign in to comment.