Interface GPUStencilFaceState

    interface GPUStencilFaceState {
        compare?: GPUCompareFunction;
        depthFailOp?: GPUStencilOperation;
        failOp?: GPUStencilOperation;
        passOp?: GPUStencilOperation;
    }

    Properties

    The GPUCompareFunction used when testing fragments against GPURenderPassDescriptor#depthStencilAttachment stencil values.

    depthFailOp?: GPUStencilOperation

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

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

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