mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
spirv_emit_context: add missing flat decoration
This commit is contained in:
parent
9c67334031
commit
0d033e6b45
1 changed files with 1 additions and 0 deletions
|
@ -1362,6 +1362,7 @@ void EmitContext::DefineInputs(const IR::Program& program) {
|
||||||
if (loads[IR::Attribute::Layer]) {
|
if (loads[IR::Attribute::Layer]) {
|
||||||
AddCapability(spv::Capability::Geometry);
|
AddCapability(spv::Capability::Geometry);
|
||||||
layer = DefineInput(*this, U32[1], false, spv::BuiltIn::Layer);
|
layer = DefineInput(*this, U32[1], false, spv::BuiltIn::Layer);
|
||||||
|
Decorate(layer, spv::Decoration::Flat);
|
||||||
}
|
}
|
||||||
if (loads.AnyComponent(IR::Attribute::PositionX)) {
|
if (loads.AnyComponent(IR::Attribute::PositionX)) {
|
||||||
const bool is_fragment{stage != Stage::Fragment};
|
const bool is_fragment{stage != Stage::Fragment};
|
||||||
|
|
Loading…
Reference in a new issue