VertexLayout
On this page

VertexLayout

Interface in Reflection

The vertex-buffer layout for a module's @vertex entry: every @location input and the interleaved, tightly packed arrayStride they fill.

import type { VertexLayout } from 'typeshade'

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

Syntax

interface VertexLayout {
readonly attributes: readonly VertexAttr[];
readonly arrayStride: number;
}

Description

reflect describes the first @vertex entry it finds in module.funcs; a module with more than one vertex entry point gets a VertexLayout for the one declared first. Reflection.vertex is undefined when the module has no @location vertex parameters.

Instance properties

attributesread only readonly VertexAttr[]
arrayStrideread only number

See also

Source

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

Edit this page Report a problem