GPURenderPassDepthStencilAttachment.depthOnly constructor

GPURenderPassDepthStencilAttachment.depthOnly({
  1. GPUTextureView view,
  2. double depthClearValue,
  3. String depthLoadOp,
  4. String depthStoreOp,
})

A depth attachment on a format with no stencil aspect.

Naming the stencil operations on a depth-only format is an error, not a no-op, so a single constructor with four optional members would let a shadow pass on depth32float be written the same way as one on depth24plus-stencil8 and fail only on the first. The two are separated here, and TextureFormat already says which is which.

Implementation

external factory GPURenderPassDepthStencilAttachment.depthOnly({
  GPUTextureView view,
  double depthClearValue,
  String depthLoadOp,
  String depthStoreOp,
});