A layer that manages a pool of Metal drawables.
- iOS 8.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- Core Animation
To use Metal for rendering in your app, use this class as the backing layer for a view by returning it from your view’s
layer class method. To render the layer’s content, use the
next method to retrieve a texture, then use it as a render target in a Metal rendering pipeline. After rendering each frame, you present the new content for display with the
present(_: method of the command buffer you used for rendering.