Function instanceIndex [src]
Will make ptr contain the index of the instance that is
being processed by the current vertex shader invocation.
ptr must be a reference to variable or struct field.
Prototype
pub fn instanceIndex(comptime ptr: *addrspace(.input) u32) void
Parameters
ptr: *addrspace(.input) u32
Source
pub fn instanceIndex(comptime ptr: *addrspace(.input) u32) void {
asm volatile (
\\OpDecorate %ptr BuiltIn InstanceIndex
:
: [ptr] "" (ptr),
);
}