Skip to content

@orillusion/core


Interface: BeginPassOptions

Defined in: src/gfx/renderJob/graph/RenderGraphRenderTarget.ts:25

Per-call open options for RenderGraphRenderTarget.beginPass.

Any field left undefined (or any array slot left undefined) defaults via the auto-derive rule:

  • first writer of the RT this frame ⇒ 'clear'
  • subsequent writer of the same RT ⇒ 'load'

Callers explicitly set a field when they need to override the default — typical case is a mid-frame ClearDepth that wants depthLoadOp: 'clear' even though it isn't the first writer.

Properties

colorLoadOps?

optional colorLoadOps?: GPULoadOp[]

Defined in: src/gfx/renderJob/graph/RenderGraphRenderTarget.ts:29

Per-color-attachment loadOp. Length matches the RT's color count. Each slot independently auto-derives when left undefined.


colorClearValues?

optional colorClearValues?: GPUColor[]

Defined in: src/gfx/renderJob/graph/RenderGraphRenderTarget.ts:32

Optional override of per-attachment clearValue (defaults to the RT descriptor's clearValue).


depthLoadOp?

optional depthLoadOp?: GPULoadOp

Defined in: src/gfx/renderJob/graph/RenderGraphRenderTarget.ts:33


depthClearValue?

optional depthClearValue?: number

Defined in: src/gfx/renderJob/graph/RenderGraphRenderTarget.ts:34


stencilLoadOp?

optional stencilLoadOp?: GPULoadOp

Defined in: src/gfx/renderJob/graph/RenderGraphRenderTarget.ts:35


label?

optional label?: string

Defined in: src/gfx/renderJob/graph/RenderGraphRenderTarget.ts:38

Suffix appended to the underlying command encoder + render pass for devtools. Defaults to the target name.