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

Display your Metal content with a view that manages much of the setup for you. To avoid subclassing MTKView, you can assign a delegate to handle its relevant callbacks.

MTKView

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

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.

MTKTextureLoader

An object that decodes common image formats into Metal textures for use in your 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.

MTKMesh

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

MTKMeshBuffer

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

See Also

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