diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-01-03 16:01:25 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-01-04 20:39:42 +0100 |
commit | a0c697124ced080f58866825e2e323e8682bbd7f (patch) | |
tree | 73830fc46134be10d7feffc3da11aa9f0ea58ffb /src/shader_recompiler/backend/spirv/spirv_emit_context.cpp | |
parent | Texture Cache: Implement async texture downloads. (diff) | |
download | yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.tar yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.tar.gz yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.tar.bz2 yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.tar.lz yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.tar.xz yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.tar.zst yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv/spirv_emit_context.cpp')
-rw-r--r-- | src/shader_recompiler/backend/spirv/spirv_emit_context.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp index 563a5fc49..ecb2db494 100644 --- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp @@ -1402,6 +1402,9 @@ void EmitContext::DefineInputs(const IR::Program& program) { } else if (loads[IR::Attribute::BaseVertex]) { base_vertex = DefineInput(*this, U32[1], true, spv::BuiltIn::BaseVertex); } + if (loads[IR::Attribute::DrawID]) { + draw_index = DefineInput(*this, U32[1], true, spv::BuiltIn::DrawIndex); + } if (loads[IR::Attribute::FrontFace]) { front_face = DefineInput(*this, U1, true, spv::BuiltIn::FrontFacing); } |