Skip to content

@tmrw-realityos/charmDocs


@tmrw-realityos/charm / FrameGraphPass

Class: FrameGraphPass

Constructors

new FrameGraphPass()

new FrameGraphPass(name, desc, graph): FrameGraphPass

Parameters

name: string

desc: FrameGraphPassDescriptor

graph: FrameGraph

Returns

FrameGraphPass

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:97

Properties

data?

optional data: unknown

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:88


execute()?

optional execute: (renderPass, graphPass?) => void

Parameters

renderPass: GPURenderPassEncoder

graphPass?: FrameGraphPass

Returns

void

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:92


graph

graph: FrameGraph

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:89


index

index: number = 0

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:81


inputs

inputs: TextureHandler[] = []

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:83


name

name: string

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:79


outputs

outputs: TextureHandler[] = []

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:84


renderPassDescriptor?

optional renderPassDescriptor: GPURenderPassDescriptor

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:86


resources_by_id

resources_by_id: Map<string, TextureHandler>

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:85


setup()

setup: (graph, pass?) => void

Parameters

graph: FrameGraph

pass?: FrameGraphPass

Returns

void

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:91


skip

skip: boolean = false

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:87


type

type: ePassType

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:80

Accessors

clearColor

get clearColor(): [number, number, number, number]

set clearColor(color): void

Parameters

color: [number, number, number, number]

Returns

[number, number, number, number]

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:113


output

get output(): TextureHandler

Returns

TextureHandler

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:123

Methods

get()

get(name): TextureHandler

Parameters

name: string

Returns

TextureHandler

Defined in

packages/charm/src/graphics/WebGPU/WebGPUFrameGraph.ts:117