diff options
| author | 2021-06-24 02:41:09 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:39 -0400 | |
| commit | 7dafa96ab59892b7f1fbffdb61e4326e6443955f (patch) | |
| tree | 5ab58d56860db635542ea1ec24be258bd86b40b9 /src/shader_recompiler/backend/glasm/emit_glasm.cpp | |
| parent | vk_graphics_pipeline: Implement conservative rendering (diff) | |
| download | yuzu-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/glasm/emit_glasm.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp index 79314f130..2b96977b3 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp | |||
| @@ -296,8 +296,10 @@ void SetupOptions(const IR::Program& program, const Profile& profile, | |||
| 296 | if (info.uses_sparse_residency) { | 296 | if (info.uses_sparse_residency) { |
| 297 | header += "OPTION EXT_sparse_texture2;"; | 297 | header += "OPTION EXT_sparse_texture2;"; |
| 298 | } | 298 | } |
| 299 | if (((info.stores_viewport_index || info.stores_layer) && stage != Stage::Geometry) || | 299 | const bool stores_viewport_layer{info.stores[IR::Attribute::ViewportIndex] || |
| 300 | info.stores_viewport_mask) { | 300 | info.stores[IR::Attribute::Layer]}; |
| 301 | if ((stage != Stage::Geometry && stores_viewport_layer) || | ||
| 302 | info.stores[IR::Attribute::ViewportMask]) { | ||
| 301 | if (profile.support_viewport_index_layer_non_geometry) { | 303 | if (profile.support_viewport_index_layer_non_geometry) { |
| 302 | header += "OPTION NV_viewport_array2;"; | 304 | header += "OPTION NV_viewport_array2;"; |
| 303 | } | 305 | } |