One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

TextureResource.DrawableQueue

class · iOS 15.0+ · SDK 27.1

class DrawableQueue

A drawable queue that may be used to update a texture resource dynamically Each drawable queue can work with at most one consumer, such as a ``RealityRenderer`` instance or a render server.

Members (9)

get · iOS 15.0+

allowsNextDrawableTimeout

TypeScript
get allowsNextDrawableTimeout(): Promise<boolean>
Swift declaration
var allowsNextDrawableTimeout: Bool

A Boolean value that determines whether requests for a new drawable expire if the system can’t satisfy them.

set · iOS 15.0+

allowsNextDrawableTimeout

TypeScript
setAllowsNextDrawableTimeout(value: boolean): Promise<void>
Swift declaration
var allowsNextDrawableTimeout: Bool

A Boolean value that determines whether requests for a new drawable expire if the system can’t satisfy them.

method · iOS 15.0+

nextDrawable

TypeScript
nextDrawable(): Promise<TextureResource_Drawable>
Swift declaration
func nextDrawable() throws -> TextureResource.Drawable

Returns drawable when one is available, blocking the caller in the meantime. The method can block the caller for a duration up to the ``DrawableQueue-swift.class/Descriptor/timeout`` period. - Note: The method returns `nil` without blocking when the drawable queue isn't bound to a material in the scene, or when the render server is currently loading and initializing it.

get · iOS 15.0+

mipmapsMode

TypeScript
get mipmapsMode(): Promise<TextureResource_MipmapsMode>
Swift declaration
var mipmapsMode: TextureResource.MipmapsMode { get }

Options that determine how mipmaps are handled for each drawable's textures.

get · iOS 15.0+

pixelFormat

TypeScript
get pixelFormat(): Promise<_Metal_MTLPixelFormat>
Swift declaration
var pixelFormat: MTLPixelFormat { get }

The size and bit layout of all pixels in each drawable's texture.

get · iOS 15.0+

usage

TypeScript
get usage(): Promise<_Metal_MTLTextureUsage>
Swift declaration
var usage: MTLTextureUsage { get }

Options that determine how you can use each drawable's textures.

get · iOS 15.0+

width

TypeScript
get width(): Promise<number>
Swift declaration
var width: Int { get }

The width of each drawable's texture in pixels.

get · iOS 15.0+

height

TypeScript
get height(): Promise<number>
Swift declaration
var height: Int { get }

The height of each drawable's texture in pixels.

init · iOS 15.0+

init

TypeScript
static init(descriptor: TextureResource_DrawableQueue_Descriptor): Promise<TextureResource_DrawableQueue>
Swift declaration
@MainActor @preconcurrency init(_ descriptor: TextureResource.DrawableQueue.Descriptor) throws

Create a new drawable queue. - Parameter descriptor: A descriptor object that describes the texture to be created.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →