<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/TextureResource/DrawableQueue-swift.class",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15TextureResourceC13DrawableQueueC"
  },
  "title" : "TextureResource.DrawableQueue"
}
-->

# TextureResource.DrawableQueue

A drawable queue that may be used to update a texture resource dynamically

```
class DrawableQueue
```

## Overview

Each drawable queue can work with at most one consumer,
such as a [`RealityRenderer`](/documentation/RealityKit/RealityRenderer) instance or a render server.

## Topics

### Creating a queue

[`init(TextureResource.DrawableQueue.Descriptor) throws`](/documentation/RealityKit/TextureResource/DrawableQueue-swift.class/init(_:))

Create a new drawable queue.

### Working with queues

[`var allowsNextDrawableTimeout: Bool`](/documentation/RealityKit/TextureResource/DrawableQueue-swift.class/allowsNextDrawableTimeout)

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

[`var height: Int`](/documentation/RealityKit/TextureResource/DrawableQueue-swift.class/height)

The height of each drawable’s texture in pixels.

[`var mipmapsMode: TextureResource.MipmapsMode`](/documentation/RealityKit/TextureResource/DrawableQueue-swift.class/mipmapsMode)

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

[`var pixelFormat: MTLPixelFormat`](/documentation/RealityKit/TextureResource/DrawableQueue-swift.class/pixelFormat)

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

[`var usage: MTLTextureUsage`](/documentation/RealityKit/TextureResource/DrawableQueue-swift.class/usage)

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

[`var width: Int`](/documentation/RealityKit/TextureResource/DrawableQueue-swift.class/width)

The width of each drawable’s texture in pixels.

[`func nextDrawable() throws -> TextureResource.Drawable`](/documentation/RealityKit/TextureResource/DrawableQueue-swift.class/nextDrawable())

Returns drawable when one is available, blocking the caller in the meantime.

### Structures

[`struct Descriptor`](/documentation/RealityKit/TextureResource/DrawableQueue-swift.class/Descriptor)

Describes the texture managed by the drawable queue

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)