VERY experimental Nintendo Switch 2 emulator
C++
glsl: Implement more instructions used by SMO
ameerjd7213c862e05
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cppindex 94ba9af7c6..fd0113c8d5 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 Profileprogram.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;}}