summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-03-30 21:52:06 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:25 +0200
commit0c4cf3b9eb7de6624a844ae9ac9d2ba6b2ef3ac2 (patch)
tree2ee6b4fb859d23e304b80d91a3472d8a504d01e3 /src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
parentshader: Fix TXD (diff)
downloadyuzu-0c4cf3b9eb7de6624a844ae9ac9d2ba6b2ef3ac2.tar
yuzu-0c4cf3b9eb7de6624a844ae9ac9d2ba6b2ef3ac2.tar.gz
yuzu-0c4cf3b9eb7de6624a844ae9ac9d2ba6b2ef3ac2.tar.bz2
yuzu-0c4cf3b9eb7de6624a844ae9ac9d2ba6b2ef3ac2.tar.lz
yuzu-0c4cf3b9eb7de6624a844ae9ac9d2ba6b2ef3ac2.tar.xz
yuzu-0c4cf3b9eb7de6624a844ae9ac9d2ba6b2ef3ac2.tar.zst
yuzu-0c4cf3b9eb7de6624a844ae9ac9d2ba6b2ef3ac2.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp10
1 files changed, 10 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 730d3e91e..50ffc4c19 100644
--- a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
+++ b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
@@ -71,6 +71,16 @@ void SetAttribute(Info& info, IR::Attribute attribute) {
case IR::Attribute::PositionW:
info.stores_position = true;
break;
+ case IR::Attribute::ClipDistance0:
+ case IR::Attribute::ClipDistance1:
+ case IR::Attribute::ClipDistance2:
+ case IR::Attribute::ClipDistance3:
+ case IR::Attribute::ClipDistance4:
+ case IR::Attribute::ClipDistance5:
+ case IR::Attribute::ClipDistance6:
+ case IR::Attribute::ClipDistance7:
+ info.stores_clip_distance = true;
+ break;
default:
throw NotImplementedException("Set attribute {}", attribute);
}