Interface CAMetalDrawable

  • All Superinterfaces:
    MTLDrawable

    public interface CAMetalDrawable
    extends MTLDrawable
    CAMetalDrawable represents a displayable buffer that vends an object that conforms to the MTLTexture protocol that may be used to create a render target for Metal. 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.
    • Method Detail

      • layer

        CAMetalLayer layer()
        This is the CAMetalLayer responsible for displaying the drawable
      • texture

        MTLTexture texture()
        This is an object that conforms to the MTLTexture protocol and will typically be used to create an MTLRenderTargetDescriptor.