diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index 788679f40..8de33b582 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp | |||
| @@ -110,8 +110,11 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile | |||
| 110 | header += fmt::format("layout(location={})out vec4 frag_color{};", index, index); | 110 | header += fmt::format("layout(location={})out vec4 frag_color{};", index, index); |
| 111 | } | 111 | } |
| 112 | for (size_t index = 0; index < info.stores_generics.size(); ++index) { | 112 | for (size_t index = 0; index < info.stores_generics.size(); ++index) { |
| 113 | if (info.stores_generics[index]) { | 113 | // TODO: Properly resolve attribute issues |
| 114 | header += fmt::format("layout(location={}) out vec4 out_attr{};", index, index); | 114 | const auto declaration{ |
| 115 | fmt::format("layout(location={}) out vec4 out_attr{};", index, index)}; | ||
| 116 | if (info.stores_generics[index] || stage == Stage::VertexA || stage == Stage::VertexB) { | ||
| 117 | header += declaration; | ||
| 115 | } | 118 | } |
| 116 | } | 119 | } |
| 117 | DefineConstantBuffers(bindings); | 120 | DefineConstantBuffers(bindings); |