summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-06-24 02:41:09 -0300
committerGravatar ameerj2021-07-22 21:51:39 -0400
commit7dafa96ab59892b7f1fbffdb61e4326e6443955f (patch)
tree5ab58d56860db635542ea1ec24be258bd86b40b9 /src/shader_recompiler/backend/glsl/emit_glsl_special.cpp
parentvk_graphics_pipeline: Implement conservative rendering (diff)
downloadyuzu-7dafa96ab59892b7f1fbffdb61e4326e6443955f.tar.gz
yuzu-7dafa96ab59892b7f1fbffdb61e4326e6443955f.tar.xz
yuzu-7dafa96ab59892b7f1fbffdb61e4326e6443955f.zip
shader: Rework varyings and implement passthrough geometry shaders
Put all varyings into a single std::bitset with helpers to access it. Implement passthrough geometry shaders using host's.
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_special.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_special.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp
index 6420aaa21..298881c7b 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp
@@ -20,8 +20,8 @@ void InitializeOutputVaryings(EmitContext& ctx) {
20 if (ctx.stage == Stage::VertexB || ctx.stage == Stage::Geometry) { 20 if (ctx.stage == Stage::VertexB || ctx.stage == Stage::Geometry) {
21 ctx.Add("gl_Position=vec4(0,0,0,1);"); 21 ctx.Add("gl_Position=vec4(0,0,0,1);");
22 } 22 }
23 for (size_t index = 0; index < ctx.info.stores_generics.size(); ++index) { 23 for (size_t index = 0; index < IR::NUM_GENERICS; ++index) {
24 if (!ctx.info.stores_generics[index]) { 24 if (!ctx.info.stores.Generic(index)) {
25 continue; 25 continue;
26 } 26 }
27 const auto& info_array{ctx.output_generics.at(index)}; 27 const auto& info_array{ctx.output_generics.at(index)};