Interface GPUDepthStencilState
depthBias?: number;
depthBiasClamp?: number;
depthBiasSlopeScale?: number;
depthCompare?: GPUCompareFunction;
depthWriteEnabled?: boolean;
format: GPUTextureFormat;
stencilBack?: GPUStencilFaceState;
stencilFront?: GPUStencilFaceState;
stencilReadMask?: number;
stencilWriteMask?: number;
}
Properties
Optional
depthBias
Optional
depthBiasClamp
The maximum depth bias of a fragment. See [$biased fragment depth$] for details.
Optional
depthBiasSlopeScale
Depth bias that scales with the fragment’s slope. See [$biased fragment depth$] for details.
Optional
depthCompare
The comparison operation used to test fragment depths against GPURenderPassDescriptor#depthStencilAttachment depth values.
Optional
depthWriteEnabled
Indicates if this GPURenderPipeline can modify GPURenderPassDescriptor#depthStencilAttachment depth values.
format
The GPUTextureViewDescriptor#format of GPURenderPassDescriptor#depthStencilAttachment this GPURenderPipeline will be compatible with.
Optional
stencilBack
Defines how stencil comparisons and operations are performed for back-facing primitives.
Optional
stencilFront
Defines how stencil comparisons and operations are performed for front-facing primitives.
Optional
stencilReadMask
Bitmask controlling which GPURenderPassDescriptor#depthStencilAttachment stencil value bits are read when performing stencil comparison tests.
Optional
stencilWriteMask
Bitmask controlling which GPURenderPassDescriptor#depthStencilAttachment stencil value bits are written to when performing stencil operations.
Constant depth bias added to each fragment. See [$biased fragment depth$] for details.