They are VertexIndex and InstanceIndex.
SPV_OPCODE_FLAGS_CAPABILITIES,
CapabilityKernel,
{SPV_OPERAND_TYPE_NONE}},
+ {"VertexIndex",
+ BuiltInVertexIndex,
+ SPV_OPCODE_FLAGS_CAPABILITIES,
+ CapabilityShader,
+ {SPV_OPERAND_TYPE_NONE}},
+ {"InstanceIndex",
+ BuiltInInstanceIndex,
+ SPV_OPCODE_FLAGS_CAPABILITIES,
+ CapabilityShader,
+ {SPV_OPERAND_TYPE_NONE}},
};
static const spv_operand_desc_t selectionControlEntries[] = {
CASE(NumEnqueuedSubgroups),
CASE(SubgroupId),
CASE(SubgroupLocalInvocationId),
+ CASE(VertexIndex),
+ CASE(InstanceIndex),
}));
#undef CASE
// clang-format on