A displayable resource that can be rendered or written to.
SDKs
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Metal
Declaration
protocol MTLDrawable
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 CAMetal
, for a class that can create and manage drawable objects for you.