Contents

MTLDrawable

A displayable resource that can be rendered or written to.

Declaration

protocol MTLDrawable : NSObjectProtocol

Mentioned in

Overview

Objects that implement this protocol are connected both to the Metal framework and an underlying display system (such as Core Animation) that’s capable of showing content onscreen. You use drawable objects when you want to render images using Metal and present them onscreen.

Don’t implement this protocol yourself; instead, see CAMetalLayer, for a class that can create and manage drawable objects for you.

Topics

Identifying the drawable

Presenting the drawable

Getting presentation information

See Also

Render pass outputs