menu

GpuDepthStencilState

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

Depth-stencil-state descriptor.

language/library/src/gpu/binding/pipeline.ds:405:426
1export struct GpuDepthStencilState {2    format: GpuTextureFormat;3    depthWriteEnabled: boolean;4    depthCompare: GpuCompareFunction;5    stencilFront: GpuStencilFaceState;6    stencilBack: GpuStencilFaceState;7    stencilReadMask: uint32;8    stencilWriteMask: uint32;9    depthBias: int32;10    depthBiasSlopeScale: float64;11    depthBiasClamp: float64;12}

Members

format: GpuTextureFormat

Depth-stencil texture format identifier.

depthWriteEnabled: boolean

Whether depth writes are enabled.

depthCompare: GpuCompareFunction

Depth compare selector.

stencilFront: GpuStencilFaceState

Front-face stencil-state descriptor.

stencilBack: GpuStencilFaceState

Back-face stencil-state descriptor.

stencilReadMask: uint32

Stencil read mask.

stencilWriteMask: uint32

Stencil write mask.

depthBias: int32

Constant depth-bias value.

depthBiasSlopeScale: float64

Depth-bias slope scale.

depthBiasClamp: float64

Depth-bias clamp value.