LowLevelMeshResource
A container for vertex and index data in a custom format.
Declaration
final class LowLevelMeshResourceOverview
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
descriptorLowLevelMeshResource.DescriptorLowLevelMeshResource.LayoutLowLevelMeshResource.AttributeLowLevelMeshResource.VertexSemantic
Accessing vertex data
readVertices(at:_:)updateVertices(at:_:)replaceVertices(at:_:)readVertices(at:commandBuffer:)replaceVertices(at:commandBuffer:)