Browse Source
Merge pull request #9260 from liamwhite/youre-in-big-trouble-now
spirv_emit_context: add missing flat decoration
pull/15/merge
Fernando S
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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}; |
|
|
|
|