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.