Protocol

CAMetalDrawable

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

Declaration

protocol CAMetalDrawable

Topics

Using a Drawable Object as a Render Target

var texture: MTLTexture

A Metal texture object representing the drawable object’s content.

Required.

Finding a Drawable’s Layer

var layer: CAMetalLayer

The layer that owns this drawable object.

Required.

Relationships

Inherits From

See Also

Metal and OpenGL

class CAMetalLayer

A layer that manages a pool of Metal drawables.

class CAEAGLLayer

A layer that supports drawing OpenGL content in iOS and tvOS applications.

Deprecated
class CAOpenGLLayer

A layer that provides a layer suitable for rendering OpenGL content.

Deprecated
class CARenderer

A layer that allows an application to render a layer tree into a Core OpenGL context.

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