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