VertexAttr
Interface in Reflection
One @location input of the module's @vertex entry point, from a loose parameter or a located struct field.
import type { VertexAttr } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
interface VertexAttr { readonly name: string; readonly emitted: string; readonly location: number; readonly type: string; readonly offset: number;}Description
Attributes follow declaration order, and each offset is the end
of the previous attribute. These formats use 4-byte lanes and require no padding between
attributes. Reordering inputs can change their offsets. type is the DSL type key (the string
typeKey returns), the same spelling StructLayout.fields[].type uses.
Instance properties
nameread onlystringemittedread onlystringThe parameter’s name in the emitted text (Rule 11.10).
locationread onlynumberThe location, written (
location<n, T>) or given by the compiler (Rule 6.6, change 0135).typeread onlystringoffsetread onlynumber
See also
Source
src/core/reflect/entry-types.ts, line 11, at commit af54ddad5