Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The setStencilReference()
method of the GPURenderPassEncoder
interface sets the stencil reference value using during stencil tests with the "replace"
stencil operation (as set in the descriptor of the GPUDevice.createRenderPipeline()
method, in the properties defining the various stencil operations).