GPUDepthStencilState constructor
GPUDepthStencilState({
- String format,
- bool depthWriteEnabled,
- String depthCompare,
- GPUStencilFaceState stencilFront,
- GPUStencilFaceState stencilBack,
- int stencilReadMask,
- int stencilWriteMask,
- int depthBias,
- double depthBiasSlopeScale,
- double depthBiasClamp,
The depth and stencil half of a pipeline.
All of it is pipeline state here and per-draw state in the contract, which
is the divergence command_encoder.dart already names: the setters are
accumulated and a pipeline is looked up at the draw. stencilReadMask and
stencilWriteMask are pipeline state too — only the reference value is
dynamic, which is why setStencilReference exists on the pass and its two
masks do not.
Implementation
external factory GPUDepthStencilState({
String format,
bool depthWriteEnabled,
String depthCompare,
GPUStencilFaceState stencilFront,
GPUStencilFaceState stencilBack,
int stencilReadMask,
int stencilWriteMask,
int depthBias,
double depthBiasSlopeScale,
double depthBiasClamp,
});