Skip to content

GpuIVec3

1 min read

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.

public struct GpuIVec3

x

The first component.

public x: int

y

The second component.

public y: int

z

The third component.

public z: int

constructor

Creates the vector (x, y, z).

public constructor(x: int, y: int, z: int)

xy

The first two components, for example a pixel coordinate from a 2D dispatch.

public get xy(): GpuIVec2