Contents

LowLevelMesh.Layout

An object that describes a set of attributes that share a buffer index, offset, and stride.

Declaration

struct Layout

Overview

Applications typically express their types using contiguous or interleaved (strided) memory.

If you interleave your data (meaning that you represent it with a structure), use one Layout object where bufferStride is equal to MemoryLayout<Type>.stride().

If you store your attributes separately, use one Layout per attribute.

Topics

Creating a low-level mesh layout

Describing a low-level mesh layout

See Also

Updatable meshes