diff options
author | Liam <byteslice@airmail.cc> | 2022-11-19 04:05:28 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-11-19 04:05:28 +0100 |
commit | 0d033e6b45bd5bfe30234f0cc5f588012d033a3e (patch) | |
tree | 50ea8107587a6c13a9b2d8a17659452f5e5c3040 /src/shader_recompiler/backend/spirv | |
parent | Merge pull request #9253 from vonchenplus/attr_layer (diff) | |
download | yuzu-0d033e6b45bd5bfe30234f0cc5f588012d033a3e.tar yuzu-0d033e6b45bd5bfe30234f0cc5f588012d033a3e.tar.gz yuzu-0d033e6b45bd5bfe30234f0cc5f588012d033a3e.tar.bz2 yuzu-0d033e6b45bd5bfe30234f0cc5f588012d033a3e.tar.lz yuzu-0d033e6b45bd5bfe30234f0cc5f588012d033a3e.tar.xz yuzu-0d033e6b45bd5bfe30234f0cc5f588012d033a3e.tar.zst yuzu-0d033e6b45bd5bfe30234f0cc5f588012d033a3e.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv')
-rw-r--r-- | src/shader_recompiler/backend/spirv/spirv_emit_context.cpp | 1 |
1 files changed, 1 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 dd96b7803..8e3e40cd5 100644 --- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp @@ -1362,6 +1362,7 @@ void EmitContext::DefineInputs(const IR::Program& program) { if (loads[IR::Attribute::Layer]) { AddCapability(spv::Capability::Geometry); layer = DefineInput(*this, U32[1], false, spv::BuiltIn::Layer); + Decorate(layer, spv::Decoration::Flat); } if (loads.AnyComponent(IR::Attribute::PositionX)) { const bool is_fragment{stage != Stage::Fragment}; |