menu
GpuStencilOperation
import { GpuStencilOperation } from "destack:gpu/binding";
Stencil operation selector.
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 = 0Keep the current stencil value.
Zero = 1Set stencil to zero.
Replace = 2Replace stencil with the reference value.
Invert = 3Bitwise invert the current stencil value.
IncrementClamp = 4Increment and clamp stencil.
DecrementClamp = 5Decrement and clamp stencil.
IncrementWrap = 6Increment and wrap stencil.
DecrementWrap = 7Decrement and wrap stencil.