Skip to content

GpuStage

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.

GpuStage

The pipeline stage a shader runs in, as given by its attribute.

public enum GpuStage

Compute

A @compute shader.

Compute = 0

Vertex

A @vertex shader.

Vertex = 1

Fragment

A @fragment shader.

Fragment = 2

RayGeneration

A @ray_generation shader.

RayGeneration = 3

ClosestHit

A @closest_hit shader.

ClosestHit = 4

AnyHit

An @any_hit shader.

AnyHit = 5

Miss

A @miss shader.

Miss = 6

Intersection

An @intersection shader.

Intersection = 7

Callable

A @callable shader.

Callable = 8