Documentation
    Preparing search index...

    Function applyStencilReference

    • Issues setStencilReference when — and only when — ref differs from the pass's current value, returning the value now in effect (§67, WP-R1.3).

      A one-line mirror rather than the GL backend's eight-field GlState, because everything else GL mirrors is pipeline identity here; the reference is the one §57 stencil field WebGPU leaves as a pass command. ref is read defensively (?? 0) for the reason every §57 field is: a structurally-typed material double may omit it, and the documented default is 0.

      Parameters

      Returns number