Interface GPURenderPassDescriptor
colorAttachments: Iterable<GPURenderPassColorAttachment, any, any>;
depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
label?: string;
maxDrawCount?: number;
occlusionQuerySet?: GPUQuerySet;
timestampWrites?: GPURenderPassTimestampWrites;
}
Hierarchy
- GPUObjectDescriptorBase
- GPURenderPassDescriptor (view full)
Properties
colorAttachments
Optional
depthStencilAttachment
The GPURenderPassDepthStencilAttachment value that defines the depth/stencil attachment that will be output to and tested against when executing this render pass. Due to compatible usage list|usage compatibility, no writable depth/stencil attachment may alias another attachment or any resource used inside the render pass.
Optional
label
The initial value of GPUObjectBase.label.
Optional
maxDrawCount
The maximum number of draw calls that will be done in the render pass. Used by some implementations to size work injected before the render pass. Keeping the default value is a good default, unless it is known that more draw calls will be done.
Optional
occlusionQuerySet
The GPUQuerySet value defines where the occlusion query results will be stored for this pass.
Optional
timestampWrites
Defines which timestamp values will be written for this pass, and where to write them to.
The set of GPURenderPassColorAttachment values in this sequence defines which color attachments will be output to when executing this render pass. Due to compatible usage list|usage compatibility, no color attachment may alias another attachment or any resource used inside the render pass.