One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

TextureResource.Drawable

class · iOS 15.0+ · SDK 27.1

class Drawable

A drawable associated with a drawable queue

Members (4)

get · iOS 15.0+

drawableQueue

TypeScript
get drawableQueue(): Promise<TextureResource_DrawableQueue>
Swift declaration
var drawableQueue: TextureResource.DrawableQueue { get }

The DrawableQueue that this Drawable is owned by

method · iOS 15.0+

presentOnSceneUpdate

TypeScript
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.

method · iOS 15.0+

present

TypeScript
present(): Promise<void>
Swift declaration
func 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 · iOS 15.0+

texture

TypeScript
get texture(): Promise<SDKHandle>
Swift declaration
var texture: any MTLTexture { get }

A Metal texture object that contains the drawable’s contents.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →