Class

MTKMeshBuffer

A buffer that backs the vertex data of a Model I/O mesh, suitable for use in a Metal app.

Declaration

@interface MTKMeshBuffer : NSObject

Topics

Originating Objects

allocator

The allocator object used to create this mesh buffer.

zone

The zone, if any, from which this mesh buffer was created.

type

The type of data contained in the originating Model I/O buffer.

Metal Buffer Properties

buffer

The Metal buffer backing all vertex and index data.

length

The logical size of the Metal buffer, in bytes.

offset

The byte offset of the data within the Metal buffer.

Relationships

Inherits From

Conforms To

See Also

Model Handling

MTKMesh

A container for the vertex data of a Model I/O mesh, suitable for use in a Metal app.

MTKMeshBufferAllocator

An interface for allocating a MetalKit buffer that backs the vertex data of a Model I/O mesh, suitable for use in a Metal app.

MTKSubmesh

A container for the index data of a Model I/O submesh, suitable for use in a Metal app.

Conversion Functions

Convert between Metal and Model I/O vertex representations.

Model Errors

Learn about errors thrown by model handling methods.