GPURenderPassDescriptor.withDepth constructor

GPURenderPassDescriptor.withDepth({
  1. JSArray<GPURenderPassColorAttachment> colorAttachments,
  2. GPURenderPassDepthStencilAttachment depthStencilAttachment,
  3. String label,
})

A pass with a depth-stencil attachment as well.

Separate for the reason every other pair in this file is separate: depthStencilAttachment: null is refused, and a RenderPassDescriptor whose depth is null is exactly what the contract hands a backend for every pass that does not want one.

Implementation

external factory GPURenderPassDescriptor.withDepth({
  JSArray<GPURenderPassColorAttachment> colorAttachments,
  GPURenderPassDepthStencilAttachment depthStencilAttachment,
  String label,
});