Presentation Objects

Use user interface elements to display your Metal content.

Topics

Metal Drawables

Render or write to a drawable and display it on the screen. Drawables are displayable resources available through either MetalKit or Core Animation.

Obtaining, Presenting, and Releasing Drawables

Hold drawables as briefly as possible to avoid blocking your own work.

MTLDrawable

A displayable resource that can be rendered or written to.

CAMetalDrawable

A displayable resource that can be rendered or written to by Metal.

MetalKit View

Use a specialized view, with an optional drawing delegate, to create a display-centered Metal app.

MTKView

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

MTKViewDelegate

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

Core Animation Layer

Use a specialized backing layer to create a display-centered Metal app.

Displaying HDR Content in a Metal Layer

Bring your high dynamic range (HDR) content to compatible Mac displays.

CAMetalLayer

A layer that manages a pool of Metal drawables.

See Also

Rendering

Creating and Sampling Textures

Load image data into a texture and apply it to a quadrangle.

Render Pipelines

Specify how graphics primitives should be rendered.

Render Passes

Update a set of render targets.

MTLRenderCommandEncoder

The object to use for encoding commands for a render pass.

MTLParallelRenderCommandEncoder

An object that splits up a single render pass so that it can be simultaneously encoded from multiple threads.

Model I/O

Specify precise locations within the textures associated with graphics processing.