Function localInvocationId [src]

Will make that variable contain the location of the current cluster culling, task, mesh, or compute shader invocation within the local workgroup. Each component ranges from zero through to the size of the workgroup in that dimension minus one. ptr must be a reference to variable or struct field.

Prototype

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

Parameters

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

Source

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