Framework

MetalKit

Build Metal apps quicker and easier, using far less code. Render graphics in a standard Metal view, load textures from many sources, and work efficiently with models provided by Model I/O.

Topics

View Management

Use a specialized view, with an optional drawing delegate, to create a display-centric Metal app. Views are typically used to display graphics render targets, but may also be used to display the results of compute-processing tasks.

class MTKView

A specialized view that creates, configures, and displays Metal objects.

protocol MTKViewDelegate

Methods for responding to a MetalKit view's drawing and resizing events.

Texture Loading

Load textures into your Metal app from a variety of sources. You can even load textures asynchronously with just a few lines of code.

class MTKTextureLoader

An object that conveniently loads texture data into a Metal app.

Model Handling

Handle Model I/O assets using a Metal-specific interface. MetalKit's highly optimized functions and objects allow for efficient data transfer between Model I/O meshes and Metal buffers.

class MTKMesh

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

class MTKMeshBuffer

A buffer that backs 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

Functions for converting between Metal and Model I/O vertex representations.

Model Errors

Errors that may be thrown by model handling methods.

See Also