Function workgroupSize [src]
Indicates the workgroup size in the x, y, and z dimensions.
Only valid with the GLCompute or Kernel calling conventions.
Prototype
pub fn workgroupSize(comptime entry_point: anytype, comptime size: @Vector(3, u32)) void
Parameters
size: @Vector(3, u32)
Source
pub fn workgroupSize(comptime entry_point: anytype, comptime size: @Vector(3, u32)) void {
asm volatile (
\\OpExecutionMode %entry_point LocalSize %x %y %z
:
: [entry_point] "" (entry_point),
[x] "c" (size[0]),
[y] "c" (size[1]),
[z] "c" (size[2]),
);
}