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