<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Frame/queryDrawables()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "s:So10cp_frame_tV18CompositorServicesE14queryDrawablesSaySo0A11_drawable_tVGyF"
  },
  "title" : "queryDrawables()"
}
-->

# queryDrawables()

Returns the array of drawables expected to be used for the given frame.
These drawables each have textures, transforms and timing information
for drawing the frame.

```
func queryDrawables() -> [LayerRenderer.Drawable]
```

## Return Value

The drawable array, if the layer is in the
`LayerRenderer.State.paused` or
`LayerRenderer.State.invalidated` states
the array will have a count of 0 and frame is invalid.

## Discussion

Call this function when you’re ready to encode the drawing commands
for the frame. The `LayerRenderer.Drawable` type contains the textures and
other information you need to set up your render descriptor in Metal.

---

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)