Function globalInvocationId [src]

Will make ptr contain the location of the current invocation within the global workgroup. Each component is equal to the index of the local workgroup multiplied by the size of the local workgroup plus localInvocationId. ptr must be a reference to variable or struct field.

Prototype

pub fn globalInvocationId(comptime ptr: *addrspace(.input) @Vector(3, u32)) void

Parameters

ptr: *addrspace(.input) @Vector(3, u32)

Source

pub fn globalInvocationId(comptime ptr: *addrspace(.input) @Vector(3, u32)) void { asm volatile ( \\OpDecorate %ptr BuiltIn GlobalInvocationId : : [ptr] "" (ptr), ); }