Waits until a Metal drawable is available, and then returns it.
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Core Animation
CAMetal object maintains an internal pool of textures for displaying layer content, each wrapped in a
CAMetal object. Use this method to retrieve the next available drawable from the pool. If all drawables are in use, the layer waits up to one second for one to become available, after which it returns
allows property affects this behavior.
This method returns
nil if the layer’s
pixel or other properties are invalid.