menu

GpuAddressMode

import { GpuAddressMode } from "destack:gpu/binding";

Texture address mode selector.

language/library/src/gpu/binding/resource.ds:527:536
1export enum GpuAddressMode {2    ClampToEdge = 1,3    Repeat = 2,4    MirrorRepeat = 3,5    ClampToBorder = 4,6}

Variants

ClampToEdge = 1

Clamp coordinates to the texture edge.

Repeat = 2

Repeat coordinates in a tiling pattern.

MirrorRepeat = 3

Repeat coordinates with alternating mirroring.

ClampToBorder = 4

Clamp coordinates to the configured border color.