GPUDepthStencilState constructor
GPUDepthStencilState({
- required GPUTextureFormat format,
- bool? depthWriteEnabled,
- GPUCompareFunction? depthCompare,
- GPUStencilFaceState? stencilFront,
- GPUStencilFaceState? stencilBack,
- int? stencilReadMask,
- int? stencilWriteMask,
- int? depthBias,
- double? depthBiasSlopeScale,
- double? depthBiasClamp,
Implementation
factory GPUDepthStencilState(
{required GPUTextureFormat format,
bool? depthWriteEnabled,
GPUCompareFunction? depthCompare,
GPUStencilFaceState? stencilFront,
GPUStencilFaceState? stencilBack,
int? stencilReadMask,
int? stencilWriteMask,
int? depthBias,
double? depthBiasSlopeScale,
double? depthBiasClamp}) =>
GPUDepthStencilState._(
format: format.value,
depthWriteEnabled: depthWriteEnabled ?? false,
depthCompare: depthCompare?.value ?? GPUCompareFunction.always.value,
stencilFront: stencilFront ?? undefined,
stencilBack: stencilBack ?? undefined,
stencilReadMask: stencilReadMask ?? 0xFFFFFFFF,
stencilWriteMask: stencilWriteMask ?? 0xFFFFFFFF,
depthBias: depthBias ?? 0,
depthBiasSlopeScale: depthBiasSlopeScale ?? 0,
depthBiasClamp: depthBiasClamp ?? 0);