Skip to content

GpuIndexFormat

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 @compute, @vertex, @fragment, inferred helpers and ray tracing shader functions; using them elsewhere is a compile error.

GpuIndexFormat

The integer size of an index buffer's elements.

public enum GpuIndexFormat

Uint16

16-bit indexes, from a GpuBuffer<ushort>.

Uint16 = 0

Uint32

32-bit indexes, from a GpuBuffer<uint>.

Uint32 = 1