summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_context.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-21 07:12:58 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:35 +0200
commitfaf4cd72c556421966782cece604b64fbafa5714 (patch)
treecb279ca5a0b2fa96b4a6de5262b05c9cf3374f83 /src/shader_recompiler/backend/glsl/emit_context.cpp
parentglsl: Fix "reg" allocing (diff)
downloadyuzu-faf4cd72c556421966782cece604b64fbafa5714.tar
yuzu-faf4cd72c556421966782cece604b64fbafa5714.tar.gz
yuzu-faf4cd72c556421966782cece604b64fbafa5714.tar.bz2
yuzu-faf4cd72c556421966782cece604b64fbafa5714.tar.lz
yuzu-faf4cd72c556421966782cece604b64fbafa5714.tar.xz
yuzu-faf4cd72c556421966782cece604b64fbafa5714.tar.zst
yuzu-faf4cd72c556421966782cece604b64fbafa5714.zip
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp
index b0e46cc07..8eea6344f 100644
--- a/src/shader_recompiler/backend/glsl/emit_context.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_context.cpp
@@ -29,8 +29,8 @@ void EmitContext::DefineConstantBuffers() {
}
u32 binding{};
for (const auto& desc : info.constant_buffer_descriptors) {
- Add("layout(std140,binding={}) uniform cbuf_{}{{uint cbuf{}[];}};", binding, binding,
- desc.index, desc.count);
+ Add("layout(std140,binding={}) uniform cbuf_{}{{vec4 cbuf{}[{}];}};", binding, binding,
+ desc.index, 4 * 1024);
++binding;
}
}