Aller au contenu

GPURenderPassDescriptor

Describes the color, depth/stencil, and optional timestamp attachments for a render pass.

Properties

colorAttachments

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

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

abstract val label: String
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

The GPUQuerySet value defines where the occlusion query results will be stored for this pass.

timestampWrites

Defines which timestamp values will be written for this pass, and where to write them to.