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