Skip to content

GPUStencilFaceState

Describes stencil comparison and the operations applied to a stencil face.

Properties

compare

The GPUCompareFunction used when testing the [stencilReference] value against the fragment’s depthStencilAttachment stencil values.

depthFailOp

The GPUStencilOperation performed if the fragment depth comparison described by depthCompare fails.

failOp

The GPUStencilOperation performed if the fragment stencil comparison test described by compare fails.

passOp

The GPUStencilOperation performed if the fragment stencil comparison test described by compare passes.