summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/ir_opt
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-04-16 16:31:15 -0300
committerGravatar ameerj2021-07-22 21:51:28 -0400
commite3514bcd6b09f623da14c4f3c4ffd988e75577ed (patch)
tree8c7e375472cb6b654b9d462ae4a9b51575c38b93 /src/shader_recompiler/ir_opt
parentspirv: Bitcast non-F32 attributes to F32 (diff)
downloadyuzu-e3514bcd6b09f623da14c4f3c4ffd988e75577ed.tar.gz
yuzu-e3514bcd6b09f623da14c4f3c4ffd988e75577ed.tar.xz
yuzu-e3514bcd6b09f623da14c4f3c4ffd988e75577ed.zip
spirv: Implement ViewportMask with NV_viewport_array2
Diffstat (limited to 'src/shader_recompiler/ir_opt')
-rw-r--r--src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
index c84bf211f..9631a445e 100644
--- a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
+++ b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
@@ -96,6 +96,9 @@ void SetAttribute(Info& info, IR::Attribute attribute) {
96 case IR::Attribute::ViewportIndex: 96 case IR::Attribute::ViewportIndex:
97 info.stores_viewport_index = true; 97 info.stores_viewport_index = true;
98 break; 98 break;
99 case IR::Attribute::ViewportMask:
100 info.stores_viewport_mask = true;
101 break;
99 default: 102 default:
100 throw NotImplementedException("Set attribute {}", attribute); 103 throw NotImplementedException("Set attribute {}", attribute);
101 } 104 }