public interface CAMetalDrawable extends MTLDrawable
Note: CAMetalLayer maintains an internal pool of textures used for display. In order for a texture to be re-used for a new CAMetalDrawable, any prior CAMetalDrawable must have been deallocated and another CAMetalDrawable presented.
MTLDrawable.Block_addPresentedHandler| Modifier and Type | Method and Description |
|---|---|
CAMetalLayer |
layer()
This is the CAMetalLayer responsible for displaying the drawable
|
MTLTexture |
texture()
This is an object that conforms to the MTLTexture protocol and will
typically be used to create an MTLRenderTargetDescriptor.
|
addPresentedHandler, drawableID, present, presentAfterMinimumDuration, presentAtTime, presentedTimeCAMetalLayer layer()
MTLTexture texture()