StencilState
Interface in Runtime
The stencil test of a pipeline.
import type { StencilState } from 'typeshade/runtime'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
interface StencilState extends StencilFaceState { readonly front?: StencilFaceState; readonly back?: StencilFaceState; readonly readMask?: number; readonly writeMask?: number; readonly reference?: number;}Description
The four face fields apply to both faces.
Instance properties
frontoptionalread onlyStencilFaceStatestencilFront. Overrides for the front face. Each field replaces the shared field for that face.
backoptionalread onlyStencilFaceStatestencilBack. Overrides for the back face. Each field replaces the shared field for that face.
readMaskoptionalread onlynumberstencilReadMask: 0 to 0xFFFFFFFF, default 0xFFFFFFFF. Both tiers keep the low 8 bits.
writeMaskoptionalread onlynumberstencilWriteMask: 0 to 0xFFFFFFFF, default 0xFFFFFFFF. Both tiers keep the low 8 bits.
referenceoptionalread onlynumbersetStencilReference: the reference of each draw of this pipeline, which has
depth.stencil. A whole number from 0 to 255. A fraction is refused. Unset, the draw sets the pass value. A declared reference overridespass.setStencilReferencefor its draws.
Source
src/runtime/program.ts, line 135, at commit af54ddad5