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 26de7be8.

Syntax

interface OverrideInfo {
readonly name: 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
typeread only string
defaultread only number | boolean

Source

src/core/reflect.ts, line 580, at commit 26de7be8

Edit this page Report a problem