TgpuRenderPassDescriptor
Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:52
The TypeGPU equivalent of GPURenderPassDescriptor. Attachment views accept TypeGPU textures, texture views and canvas contexts (next to raw GPUTextureViews), and query sets accept TgpuQuerySet.
Load/store operations default to loadOp: 'clear', storeOp: 'store'
(and depthClearValue: 1 for depth attachments). For depth/stencil attachments,
defaults are derived from the view’s format and aspect. A raw GPUTextureView
with no explicit operations is assumed to be depth-only; provide explicit
operations for raw stencil or depth-stencil views.
Properties
Section titled “Properties”colorAttachments?
Section titled “colorAttachments?”
optionalcolorAttachments:ColorAttachment| readonly (ColorAttachment|null)[]
Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:54
depthStencilAttachment?
Section titled “depthStencilAttachment?”
optionaldepthStencilAttachment:DepthStencilAttachment
Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:55
label?
Section titled “label?”
optionallabel:string
Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:53
maxDrawCount?
Section titled “maxDrawCount?”
optionalmaxDrawCount:number
Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:58
occlusionQuerySet?
Section titled “occlusionQuerySet?”
optionalocclusionQuerySet:GPUQuerySet|TgpuQuerySet<"occlusion">
Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:56
timestampWrites?
Section titled “timestampWrites?”
optionaltimestampWrites:TgpuPassTimestampWrites
Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:57