VertexStream beta
Interface of @v12-engine/render
ts
export interface VertexStreamA stream of a geometry's vertices beside their positions: its name in the geometry and its format. Four bytes or four shorts a vertex for what needs no more (uint8x4: a skin's joints, vec4u in a shader; unorm8x4: its weights, vec4f from 0 to 1; uint16x4: joints past 255): the geometry is then given a Uint8Array or a Uint16Array for the stream
Members
format
ts
format: 'float32x2' | 'float32x3' | 'float32x4' | 'uint8x4' | 'unorm8x4' | 'uint16x4';What a vertex of it is, as the card reads it
name
ts
name: string;What it is called: the geometry's stream of this name (normal, uv or its own)