summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/ir_opt
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-03-27 02:55:37 -0300
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-22 21:51:24 -0400
commitf0031babeb3ed04aef2468840aa37f4da13b2524 (patch)
treea92a4009b4405325d78731fd31abb9ca626ba5ef /src/shader_recompiler/ir_opt
parenta806b29cb9bb48c4a9628700946231c9150463b5 (diff)
shader: Implement front face
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 80ca8db26..0ec0d4c01 100644
--- a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
+++ b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
@@ -44,6 +44,9 @@ void GetAttribute(Info& info, IR::Attribute attribute) {
case IR::Attribute::VertexId:
info.loads_vertex_id = true;
break;
+ case IR::Attribute::FrontFace:
+ info.loads_front_face = true;
+ break;
default:
throw NotImplementedException("Get attribute {}", attribute);
}