menu

GpuStencilOperation

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

Stencil operation selector.

language/library/src/gpu/binding/pipeline.ds:365:382
1export enum GpuStencilOperation {2    Keep = 0,3    Zero = 1,4    Replace = 2,5    Invert = 3,6    IncrementClamp = 4,7    DecrementClamp = 5,8    IncrementWrap = 6,9    DecrementWrap = 7,10}

Variants

Keep = 0

Keep the current stencil value.

Zero = 1

Set stencil to zero.

Replace = 2

Replace stencil with the reference value.

Invert = 3

Bitwise invert the current stencil value.

IncrementClamp = 4

Increment and clamp stencil.

DecrementClamp = 5

Decrement and clamp stencil.

IncrementWrap = 6

Increment and wrap stencil.

DecrementWrap = 7

Decrement and wrap stencil.