GpuIVec3¶
Import: import system.gpu;
This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation. Shader-only declarations can be used only inside shader entry points and helpers reached from them; using them elsewhere is a compile error.
GpuIVec3¶
A vector of three ints, laid out like a GPU int3. Thread and workgroup ids such as global_id() use it, so components index buffers and compare with int counts directly.
x¶
The first component.
y¶
The second component.
z¶
The third component.
constructor¶
Creates the vector (x, y, z).
xy¶
The first two components, for example a pixel coordinate from a 2D dispatch.