Package apple.quartzcore.protocol
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface apple.metal.protocol.MTLDrawable
MTLDrawable.Block_addPresentedHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull CAMetalLayerlayer()This is the CAMetalLayer responsible for displaying the drawable@NotNull MTLTexturetexture()This is an object that conforms to the MTLTexture protocol and will typically be used to create an MTLRenderTargetDescriptor.-
Methods inherited from interface apple.metal.protocol.MTLDrawable
addPresentedHandler, drawableID, present, presentAfterMinimumDuration, presentAtTime, presentedTime
-
-
-
-
Method Detail
-
layer
@NotNull @NotNull CAMetalLayer layer()
This is the CAMetalLayer responsible for displaying the drawable
-
texture
@NotNull @NotNull MTLTexture texture()
This is an object that conforms to the MTLTexture protocol and will typically be used to create an MTLRenderTargetDescriptor.
-
-