diff options
| author | 2021-04-16 17:22:59 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:28 -0400 | |
| commit | 95815a3883d708f71db5119f42243e183f32f9a2 (patch) | |
| tree | b479ed61fb90f8bc6dbe25983a431e336f5f5ce9 /src/shader_recompiler/backend/spirv/emit_context.cpp | |
| parent | spirv: Bitcast non-F32 output attributes to their type before store (diff) | |
| download | yuzu-95815a3883d708f71db5119f42243e183f32f9a2.tar.gz yuzu-95815a3883d708f71db5119f42243e183f32f9a2.tar.xz yuzu-95815a3883d708f71db5119f42243e183f32f9a2.zip | |
shader: Implement PIXLD.MY_INDEX
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp index 2f8678b4e..0b4abeb44 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/emit_context.cpp | |||
| @@ -998,6 +998,9 @@ void EmitContext::DefineInputs(const Info& info) { | |||
| 998 | if (info.uses_invocation_id) { | 998 | if (info.uses_invocation_id) { |
| 999 | invocation_id = DefineInput(*this, U32[1], false, spv::BuiltIn::InvocationId); | 999 | invocation_id = DefineInput(*this, U32[1], false, spv::BuiltIn::InvocationId); |
| 1000 | } | 1000 | } |
| 1001 | if (info.uses_sample_id) { | ||
| 1002 | sample_id = DefineInput(*this, U32[1], false, spv::BuiltIn::SampleId); | ||
| 1003 | } | ||
| 1001 | if (info.uses_is_helper_invocation) { | 1004 | if (info.uses_is_helper_invocation) { |
| 1002 | is_helper_invocation = DefineInput(*this, U1, false, spv::BuiltIn::HelperInvocation); | 1005 | is_helper_invocation = DefineInput(*this, U1, false, spv::BuiltIn::HelperInvocation); |
| 1003 | } | 1006 | } |