Skip to content

@orillusion/core


Interface: RenderPipelineDesc

Defined in: src/gfx/renderJob/graph/RenderGraphRenderPass.ts:23

Descriptor for the render pipeline owned by a RenderGraphRenderPass.

Format-dependent fields (fragmentTargets, depthStencil, multisample) are auto-derived from the bound RenderGraphRenderTarget when omitted — formats and MSAA sample count must match the target the pipeline draws into. Pass authors supply these fields only when they need to override blend state, depth-compare ops, write masks, etc.

Properties

label

label: string

Defined in: src/gfx/renderJob/graph/RenderGraphRenderPass.ts:24


shaderCode

shaderCode: string

Defined in: src/gfx/renderJob/graph/RenderGraphRenderPass.ts:27

Combined WGSL source containing the vertex + fragment entry points.


vertexEntry?

optional vertexEntry?: string

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

Defaults to 'main' to match the engine's WGSL convention.


fragmentEntry?

optional fragmentEntry?: string

Defined in: src/gfx/renderJob/graph/RenderGraphRenderPass.ts:31

Defaults to 'main'.


bindGroupLayouts

bindGroupLayouts: GPUBindGroupLayoutDescriptor[]

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


vertexBuffers?

optional vertexBuffers?: GPUVertexBufferLayout[]

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

Vertex buffer layouts. Omit for fullscreen-triangle passes that source positions from @builtin(vertex_index).


primitive?

optional primitive?: GPUPrimitiveState

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

Primitive topology, cull mode, front-face, etc. Defaults to WebGPU defaults (triangle list, no culling).


depthStencil?

optional depthStencil?: Omit<GPUDepthStencilState, "format"> & object

Defined in: src/gfx/renderJob/graph/RenderGraphRenderPass.ts:43

Depth/stencil state. format is auto-filled from the target's depth attachment when omitted. Pass null to opt out even when the target has a depth attachment (rare — usually you want at least { depthWriteEnabled: false, depthCompare: 'always' }).

Type Declaration

format?

optional format?: GPUTextureFormat


fragmentTargets?

optional fragmentTargets?: Omit<GPUColorTargetState, "format"> & object[]

Defined in: src/gfx/renderJob/graph/RenderGraphRenderPass.ts:47

Per-color-attachment fragment targets. Length must match the target's color count when provided. format is auto-filled from each color attachment's texture when omitted.


multisample?

optional multisample?: GPUMultisampleState

Defined in: src/gfx/renderJob/graph/RenderGraphRenderPass.ts:50

Multisample state. count is auto-filled from the target's sample count when omitted.


constants?

optional constants?: Record<string, number>

Defined in: src/gfx/renderJob/graph/RenderGraphRenderPass.ts:53

Shader-side pipeline constants (specialization). Applied to both vertex and fragment stages.