OverrideInfo
Interface in Reflection
A pipeline specialization constant the host supplies when it creates a pipeline.
import type { OverrideInfo } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
interface OverrideInfo { readonly name: string; readonly emittedGlsl: string; readonly emitted: string; readonly type: string; readonly default: number | boolean;}Description
A pipeline specialization constant (a WGSL override) the host supplies when it creates
a pipeline. Both backends’ host-side shapes derive from it: the WGSL constants
dictionary is { [name]: value }, and the GLSL #define header is one
#define <name> <value> line per entry. Both are keyed by name and fall back to
default when the host supplies nothing.
Instance properties
nameread onlystringThe override’s authored name, the one the host supplies it by (Rule 11.10).
emittedGlslread onlystringThe GLSL spelling of the override, always present; equal to
emittedwhere they agree.emittedread onlystringThe override’s name in the emitted text (Rule 11.10).
typeread onlystringdefaultread onlynumber | boolean
Source
src/core/reflect/entry-types.ts, line 132, at commit af54ddad5