Documentation
    Preparing search index...

    Interface WgpuStencilDescriptor

    §67's stencil state as a pipeline bakes it (WP-R1.3) — §57's record minus ref, which is a pass command on WebGPU (setStencilReference) and so stays out of pipeline identity: a mask writing bit 4 and one writing bit 1 share a pipeline and differ by one recorded pass command.

    Field values are the engine's §57 spellings, mapped to WebGPU's at creation (the module-private STENCIL_COMPARES and STENCIL_OPERATIONS tables); the renderer builds the record with §57's documented defaults applied, so two draws under one clip record always produce one key.

    interface WgpuStencilDescriptor {
        depthFailOp: StencilOp;
        failOp: StencilOp;
        func: StencilFunc;
        passOp: StencilOp;
        readMask: number;
        writeMask: number;
    }
    Index
    depthFailOp: StencilOp

    Stored when the stencil test passes and the depth test fails.

    failOp: StencilOp

    Stored on stencil-test failure.

    The comparison, (ref & readMask) OP (stored & readMask).

    passOp: StencilOp

    Stored when both tests pass.

    readMask: number

    The bits the test looks at.

    writeMask: number

    The bits a write may change; 0 for a read-only test.