Skip to content

GpuIVec2

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.

GpuIVec2

A vector of two ints, laid out like a GPU int2, for pixel coordinates and 2D sizes.

public struct GpuIVec2

x

The first component.

public x: int

y

The second component.

public y: int

constructor

Creates the vector (x, y).

public constructor(x: int, y: int)