diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-04-16 06:55:06 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:27 +0200 |
commit | b0f1255c8cb800e9f336be66b3f16c3d958673d2 (patch) | |
tree | d5c63390c37b32b8ef188b6ce2db9111a9585661 /src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp | |
parent | shader: Implement tessellation shaders, polygon mode and invocation id (diff) | |
download | yuzu-b0f1255c8cb800e9f336be66b3f16c3d958673d2.tar yuzu-b0f1255c8cb800e9f336be66b3f16c3d958673d2.tar.gz yuzu-b0f1255c8cb800e9f336be66b3f16c3d958673d2.tar.bz2 yuzu-b0f1255c8cb800e9f336be66b3f16c3d958673d2.tar.lz yuzu-b0f1255c8cb800e9f336be66b3f16c3d958673d2.tar.xz yuzu-b0f1255c8cb800e9f336be66b3f16c3d958673d2.tar.zst yuzu-b0f1255c8cb800e9f336be66b3f16c3d958673d2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp | 3 |
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 aadcf7999..c84bf211f 100644 --- a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp +++ b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp @@ -34,6 +34,9 @@ void GetAttribute(Info& info, IR::Attribute attribute) { return; } switch (attribute) { + case IR::Attribute::PrimitiveId: + info.loads_primitive_id = true; + break; case IR::Attribute::PositionX: case IR::Attribute::PositionY: case IR::Attribute::PositionZ: |