Skip to content

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.

optional colorAttachments: ColorAttachment | readonly (ColorAttachment | null)[]

Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:54


optional depthStencilAttachment: DepthStencilAttachment

Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:55


optional label: string

Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:53


optional maxDrawCount: number

Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:58


optional occlusionQuerySet: GPUQuerySet | TgpuQuerySet<"occlusion">

Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:56


optional timestampWrites: TgpuPassTimestampWrites

Defined in: packages/typegpu/src/core/commandEncoder/renderPass.ts:57