diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-22 21:06:14 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:36 +0200 |
commit | 3064bde4155b865d61258e8fa87df9e6377578b6 (patch) | |
tree | a615735520ff688e6ba64775856c76d84e2d2416 /src/shader_recompiler/backend/glsl/emit_context.cpp | |
parent | glsl: More FP instructions/fixes (diff) | |
download | yuzu-3064bde4155b865d61258e8fa87df9e6377578b6.tar yuzu-3064bde4155b865d61258e8fa87df9e6377578b6.tar.gz yuzu-3064bde4155b865d61258e8fa87df9e6377578b6.tar.bz2 yuzu-3064bde4155b865d61258e8fa87df9e6377578b6.tar.lz yuzu-3064bde4155b865d61258e8fa87df9e6377578b6.tar.xz yuzu-3064bde4155b865d61258e8fa87df9e6377578b6.tar.zst yuzu-3064bde4155b865d61258e8fa87df9e6377578b6.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index b3a3e5647..da379360a 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp @@ -48,8 +48,11 @@ void EmitContext::DefineStorageBuffers() { } u32 binding{}; for (const auto& desc : info.storage_buffers_descriptors) { - Add("layout(std430,binding={}) buffer buff_{}{{uint buff{}[];}};", binding, binding, + Add("layout(std430,binding={}) buffer ssbo_{}_u32{{uint ssbo{}_u32[];}};", binding, binding, desc.cbuf_index, desc.count); + // TODO: Track ssbo data type usage + Add("layout(std430,binding={}) buffer ssbo_{}_u64{{uvec2 ssbo{}_u64[];}};", binding, + binding, desc.cbuf_index, desc.count); ++binding; } } |