Class

MTKMeshBuffer

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

Declaration

class MTKMeshBuffer : NSObject

Topics

Originating Objects

var allocator: MTKMeshBufferAllocator

The allocator object used to create this mesh buffer.

var type: MDLMeshBufferType

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

Metal Buffer Properties

var buffer: MTLBuffer

The Metal buffer backing all vertex and index data.

var length: Int

The logical size of the Metal buffer, in bytes.

var offset: Int

The byte offset of the data within the Metal buffer.

Relationships

Inherits From

See Also

Model Handling

class MTKMesh

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

class 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.

class 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software