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?
optionaldefines?:Record<string,boolean|number>
Defined in: lib/shader-plugin.ts:38
Boolean or numeric preprocessor defines added to shader assembly.
injections?
optionalinjections?:ShaderInjection[] |Record<string,string>
Defined in: lib/shader-plugin.ts:40
Named injections as explicit-stage objects or optionally language-qualified string keys.
injectionTargets?
optionalinjectionTargets?:ShaderInjectionTarget[]
Defined in: lib/shader-plugin.ts:42
Callable extension points with a shared name and language-specific source.
interStageVariables?
optionalinterStageVariables?:Record<string,ShaderPluginInterStageVariable>
Defined in: lib/shader-plugin.ts:46
Values transported from the selected vertex entry point to the fragment entry point.
module?
optionalmodule?: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?
optionalvertexInputs?:Record<string,AttributeShaderType>
Defined in: lib/shader-plugin.ts:44
Shader-facing vertex inputs added by this plugin. Buffer ownership remains with the caller.