menu
GpuDepthStencilState
import { GpuDepthStencilState } from "destack:gpu/binding";
Depth-stencil-state descriptor.
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: GpuTextureFormatDepth-stencil texture format identifier.
depthWriteEnabled: booleanWhether depth writes are enabled.
depthCompare: GpuCompareFunctionDepth compare selector.
stencilFront: GpuStencilFaceStateFront-face stencil-state descriptor.
stencilBack: GpuStencilFaceStateBack-face stencil-state descriptor.
stencilReadMask: uint32Stencil read mask.
stencilWriteMask: uint32Stencil write mask.
depthBias: int32Constant depth-bias value.
depthBiasSlopeScale: float64Depth-bias slope scale.
depthBiasClamp: float64Depth-bias clamp value.