Skip to main content

Interface: ComposableShader

An interface for modular shaders

Implemented by

Properties

debugLogging

Optional debugLogging: (debugFlags: Record<string, unknown>) => void

std interface to pass flags to control logging

Type declaration

▸ (debugFlags): void

Parameters
NameType
debugFlagsRecord<string, unknown>
Returns

void

Defined in

node_modules/.pnpm/[email protected]/node_modules/thimbleberry/dist/shader-util/ComposableShader.d.ts:7


destroy

Optional destroy: () => void

cleanup gpu resources

Type declaration

▸ (): void

Returns

void

Defined in

node_modules/.pnpm/[email protected]/node_modules/thimbleberry/dist/shader-util/ComposableShader.d.ts:9


name

Optional name: string

optional name for logging and benchmarking

Defined in

node_modules/.pnpm/[email protected]/node_modules/thimbleberry/dist/shader-util/ComposableShader.d.ts:11

Methods

commands

commands(encoder): void

Add compute or render passes for this shader to the provided GPUCommandEncoder

Parameters

NameType
encoderGPUCommandEncoder

Returns

void

Defined in

node_modules/.pnpm/[email protected]/node_modules/thimbleberry/dist/shader-util/ComposableShader.d.ts:5