GPURenderPassDescriptor.withDepth constructor
- JSArray<
GPURenderPassColorAttachment> colorAttachments, - GPURenderPassDepthStencilAttachment depthStencilAttachment,
- 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,
});