diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-30 03:12:52 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:36 +0200 |
commit | 57d354b02ced63d7a0fcb01f1f674a910054cdd1 (patch) | |
tree | 414dd5eb68b53e366e3a08b7b821f81598a0d771 /src/shader_recompiler/backend | |
parent | glsl: Implement more instructions used by SMO (diff) | |
download | yuzu-57d354b02ced63d7a0fcb01f1f674a910054cdd1.tar yuzu-57d354b02ced63d7a0fcb01f1f674a910054cdd1.tar.gz yuzu-57d354b02ced63d7a0fcb01f1f674a910054cdd1.tar.bz2 yuzu-57d354b02ced63d7a0fcb01f1f674a910054cdd1.tar.lz yuzu-57d354b02ced63d7a0fcb01f1f674a910054cdd1.tar.xz yuzu-57d354b02ced63d7a0fcb01f1f674a910054cdd1.tar.zst yuzu-57d354b02ced63d7a0fcb01f1f674a910054cdd1.zip |
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index 94ba9af7c..fd0113c8d 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp @@ -96,7 +96,6 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile program.workgroup_size[2]); break; } - const std::string_view attr_stage{stage == Stage::Fragment ? "fragment" : "vertex"}; for (size_t index = 0; index < info.input_generics.size(); ++index) { const auto& generic{info.input_generics[index]}; if (generic.used) { @@ -174,8 +173,9 @@ void EmitContext::DefineStorageBuffers(Bindings& bindings) { return; } for (const auto& desc : info.storage_buffers_descriptors) { - header += fmt::format("layout(std430,binding={}) buffer ssbo_{}{{uint ssbo{}[];}};", - bindings.storage_buffer, bindings.storage_buffer, desc.cbuf_index); + header += + fmt::format("layout(std430,binding={}) buffer ssbo_{}{{uint ssbo{}[];}};", + bindings.storage_buffer, bindings.storage_buffer, bindings.storage_buffer); bindings.storage_buffer += desc.count; } } |