StencilFaceState
Interface in Runtime
WebGPU GPUStencilFaceState: the stencil test and its three operations for one face.
import type { StencilFaceState } from 'typeshade/runtime'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
interface StencilFaceState { readonly compare?: CompareFunction; readonly failOp?: StencilOperation; readonly depthFailOp?: StencilOperation; readonly passOp?: StencilOperation;}Description
Each field it omits takes its default.
Instance properties
compareoptionalread onlyCompareFunctioncompare. How the test compares the reference with the stored value, each masked by
readMask. Default'always'.failOpoptionalread onlyStencilOperationfailOp. What a fragment that fails the stencil test does to the stored value. Default
'keep'.depthFailOpoptionalread onlyStencilOperationdepthFailOp. What a fragment that passes the stencil test and fails the depth test does. Default
'keep'.passOpoptionalread onlyStencilOperationpassOp. What a fragment that passes both tests does. Default
'keep'.
Source
src/runtime/program.ts, line 123, at commit af54ddad5