<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/commandQueue",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "c:@F@cp_layer_renderer_get_mtl4_command_queue"
  },
  "title" : "commandQueue"
}
-->

# commandQueue

Returns the command queue that the layer uses for drawing operations.

```
var commandQueue: any MTL4CommandQueue { get }
```

## Discussion

Should only be called with when supporting Metal4 through configuration.
[`cp_layer_renderer_configuration_set_supports_mtl4`](/documentation/CompositorServices/cp_layer_renderer_configuration_set_supports_mtl4)

---

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)