Skip to main content

Type Alias: ShaderPlugin

ShaderPlugin = object

Defined in: lib/shader-plugin.ts:32

Reusable shader assembly descriptor with one portable interface and language-specific source.

Properties​

defines?​

optional defines?: Record<string, boolean | number>

Defined in: lib/shader-plugin.ts:38

Boolean or numeric preprocessor defines added to shader assembly.


injections?​

optional injections?: ShaderInjection[] | Record<string, string>

Defined in: lib/shader-plugin.ts:40

Named injections as explicit-stage objects or optionally language-qualified string keys.


injectionTargets?​

optional injectionTargets?: ShaderInjectionTarget[]

Defined in: lib/shader-plugin.ts:42

Callable extension points with a shared name and language-specific source.


interStageVariables?​

optional interStageVariables?: Record<string, ShaderPluginInterStageVariable>

Defined in: lib/shader-plugin.ts:46

Values transported from the selected vertex entry point to the fragment entry point.


module?​

optional module?: ShaderModule<any, any, any>

Defined in: lib/shader-plugin.ts:36

Primary shader module. Supporting modules belong in its dependencies; omit for injection-only plugins.


name​

name: string

Defined in: lib/shader-plugin.ts:34

Stable plugin identifier.


vertexInputs?​

optional vertexInputs?: Record<string, AttributeShaderType>

Defined in: lib/shader-plugin.ts:44

Shader-facing vertex inputs added by this plugin. Buffer ownership remains with the caller.