diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-10-15 00:21:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-15 00:21:56 +0200 |
| commit | 2677fd9a8e8d7118521838e3ecad4737ef11a6c3 (patch) | |
| tree | b528dc12648b6ff9679811d758635a3a5359eaca /Source/Core/VideoCommon/VertexShaderGen.cpp | |
| parent | 5195446ddbf1f2f8ec7407e315e1ed17ce7a2ce7 (diff) | |
| parent | 713454b7d7143ef4d89e66476748b5b02dd03e8c (diff) | |
Merge pull request #12185 from iwubcode/custom_shader_uniform_backend_support
VideoBackends / VideoCommon: add support for custom shader uniforms to D3D, Vulkan, OGL
Diffstat (limited to 'Source/Core/VideoCommon/VertexShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexShaderGen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexShaderGen.cpp b/Source/Core/VideoCommon/VertexShaderGen.cpp index ff555b74fe..d2898cb412 100644 --- a/Source/Core/VideoCommon/VertexShaderGen.cpp +++ b/Source/Core/VideoCommon/VertexShaderGen.cpp @@ -96,14 +96,14 @@ ShaderCode GenerateVertexShaderCode(APIType api_type, const ShaderHostConfig& ho if (uid_data->vs_expand != VSExpand::None) { - out.Write("UBO_BINDING(std140, 3) uniform GSBlock {{\n"); + out.Write("UBO_BINDING(std140, 4) uniform GSBlock {{\n"); out.Write("{}", s_geometry_shader_uniforms); out.Write("}};\n"); if (api_type == APIType::D3D) { // D3D doesn't include the base vertex in SV_VertexID - out.Write("UBO_BINDING(std140, 4) uniform DX_Constants {{\n" + out.Write("UBO_BINDING(std140, 5) uniform DX_Constants {{\n" " uint base_vertex;\n" "}};\n\n"); } |
