Contents

LowLevelMeshResource

A container for vertex and index data in a custom format.

Declaration

final class LowLevelMeshResource

Overview

Use LowLevelMeshResource when you want to bring your own vertex format to the renderer or update your data frequently. Vertex and index data can be written directly on the CPU through span-based accessors, or on the GPU by writing to a MTLBuffer returned by readVertices(at:commandBuffer:) / replaceVertices(at:commandBuffer:).

Topics

Describing the mesh layout

Accessing vertex data

Accessing index data

See Also

GPU resources