Interface DepthStencilState

Descriptor of the depth stencil state.

See

https://www.w3.org/TR/webgpu/#depth-stencil-state

Hierarchy

  • DepthStencilState

Properties

depthBias?: number

The depth bias aka polygonOffsetUnits. Defaults to 0.

depthBiasClamp?: number

The depth bias clamp value. Defaults to 0.

depthBiasSlopeScale?: number

The depth bias slope scale aka polygonOffsetFactor. Defaults to 0.

depthCompare?: CompareFunction

Depth-compare function. Defaults to Always

depthWrite?: boolean

Depth-writes enabled? Defaults to false

format?: TextureFormat

The depth-stencil format. Defaults to Depth16

stencilBack?: StencilFaceState

Stencil back face state.

stencilFront?: StencilFaceState

Stencil front face state.

stencilReadMask?: number

Stencil read mask. Defaults to 0xFFFFFFFF

stencilWriteMask?: number

Stencil write mask. Defaults to 0xFFFFFFFF

Generated using TypeDoc