Skip to content

GpuFilter

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.

GpuFilter

How a sampler picks a color between texel centers.

public enum GpuFilter

Nearest

Uses the closest texel, for a sharp pixelated look.

Nearest = 0

Linear

Blends the surrounding texels, for smooth results.

Linear = 1