mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-23 05:25:44 +01:00
Merge pull request #9260 from liamwhite/youre-in-big-trouble-now
spirv_emit_context: add missing flat decoration
This commit is contained in:
commit
b0365a81c2
@ -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 New Issue
Block a user