OverrideInfo
On this page

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 only string

The override’s authored name, the one the host supplies it by (Rule 11.10).

emittedGlslread only string

The GLSL spelling of the override, always present; equal to emitted where they agree.

emittedread only string

The override’s name in the emitted text (Rule 11.10).

typeread only string
defaultread only number | boolean

Source

src/core/reflect/entry-types.ts, line 132, at commit af54ddad5

Edit this page Report a problem