mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 23:02:47 +01:00
spirv_emit_context: Fix BaseInstance for OGL spirv
This commit is contained in:
parent
a5b2b8b91b
commit
d5d0d2cb0e
1 changed files with 1 additions and 1 deletions
|
@ -1427,7 +1427,7 @@ void EmitContext::DefineInputs(const IR::Program& program) {
|
||||||
if (profile.support_vertex_instance_id) {
|
if (profile.support_vertex_instance_id) {
|
||||||
instance_id = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceId);
|
instance_id = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceId);
|
||||||
if (loads[IR::Attribute::BaseInstance]) {
|
if (loads[IR::Attribute::BaseInstance]) {
|
||||||
base_instance = DefineInput(*this, U32[1], true, spv::BuiltIn::BaseVertex);
|
base_instance = DefineInput(*this, U32[1], true, spv::BuiltIn::BaseInstance);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
instance_index = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceIndex);
|
instance_index = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceIndex);
|
||||||
|
|
Loading…
Reference in a new issue