drawableQueue
TypeScriptget drawableQueue(): Promise<TextureResource_DrawableQueue>Swift declarationvar drawableQueue: TextureResource.DrawableQueue { get }The DrawableQueue that this Drawable is owned by
class · iOS 15.0+ · SDK 27.1
class DrawableA drawable associated with a drawable queue
get drawableQueue(): Promise<TextureResource_DrawableQueue>Swift declarationvar drawableQueue: TextureResource.DrawableQueue { get }The DrawableQueue that this Drawable is owned by
presentOnSceneUpdate(): Promise<void>Swift declaration@MainActor func presentOnSceneUpdate()Presents the updated texture to the renderer atomically with the current scene update. Needs to be called after all commands in the command buffer have been executed (e.g. after `MTLCommandBuffer.waitUntilCompleted()`). When you call this method, the drawable will make the new texture content available to the renderer at the same time as all other entity component changes made during the same scene update.
present(): Promise<void>Swift declarationfunc present()Presents the updated texture to the renderer as soon as possible. Needs to be called after all commands in the command buffer have been executed (e.g. after `MTLCommandBuffer.waitUntilCompleted()`). When you call this method, the drawable will make the new texture content available to the renderer immediately. Alternatively, instead of waiting for completion you can call `MTLCommandBuffer.present(_:)` to signal in the command buffer that the texture is ready to use.
get texture(): Promise<SDKHandle>Swift declarationvar texture: any MTLTexture { get }A Metal texture object that contains the drawable’s contents.
No declarations were skipped in this snapshot.