GPURenderPassDescriptor¶
interface GPURenderPassDescriptor : GPUObjectDescriptorBase
Properties¶
colorAttachments¶
abstract val colorAttachments: List<GPURenderPassColorAttachment?>
The set of GPURenderPassColorAttachment values in this sequence defines which color attachments will be output to when executing this render pass. Due to usage compatibility, no color attachment may alias another attachment or any resource used inside the render pass.
depthStencilAttachment¶
abstract val depthStencilAttachment: GPURenderPassDepthStencilAttachment?
The GPURenderPassDepthStencilAttachment value that defines the depth/stencil attachment that will be output to and tested against when executing this render pass. Due to usage compatibility, no writable depth/stencil attachment may alias another attachment or any resource used inside the render pass.
label¶
The initial value of GPUObjectBase.label.
See [GPUObjectDescriptorBase.label in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpuobjectdescriptorbase-label).
maxDrawCount¶
abstract val maxDrawCount: GPUSize64
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.
occlusionQuerySet¶
abstract val occlusionQuerySet: GPUQuerySet?
The GPUQuerySet value defines where the occlusion query results will be stored for this pass.
timestampWrites¶
abstract val timestampWrites: GPURenderPassTimestampWrites?
Defines which timestamp values will be written for this pass, and where to write them to.