EntryParam
On this page

EntryParam

Interface in IR

An entry-point parameter: it carries a @builtin(...) or a @location(n).

import type { EntryParam } from 'typeshade'
import type { EntryParam } from 'typeshade/core/ir'

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

Syntax

interface EntryParam {
readonly name: string;
readonly type: ShaderType;
readonly builtin?: string;
readonly location?: number;
}

Instance properties

nameread only string
typeread only ShaderType
builtinoptionalread only string
locationoptionalread only number

Source

src/core/ir/nodes/entry-and-directive.ts, line 15, at commit af54ddad5

Edit this page Report a problem