GPUStencilFaceState constructor

GPUStencilFaceState({
  1. GPUCompareFunction? compare,
  2. GPUStencilOperation? failOp,
  3. GPUStencilOperation? depthFailOp,
  4. GPUStencilOperation? passOp,
})

Implementation

factory GPUStencilFaceState(
        {GPUCompareFunction? compare,
        GPUStencilOperation? failOp,
        GPUStencilOperation? depthFailOp,
        GPUStencilOperation? passOp}) =>
    GPUStencilFaceState._(
        compare: compare?.value ?? GPUCompareFunction.always.value,
        failOp: failOp?.value ?? GPUStencilOperation.keep.value,
        depthFailOp: depthFailOp?.value ?? GPUStencilOperation.keep.value,
        passOp: passOp?.value ?? GPUStencilOperation.keep.value);