<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Drawable/State-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "c:@E@cp_drawable_state"
  },
  "title" : "LayerRenderer.Drawable.State"
}
-->

# LayerRenderer.Drawable.State

The state of ownership for the drawable.

```
enum State
```

## Overview

Use these constants to determine whether the drawable is ready for you to use. When the drawable is in the [`LayerRenderer.Drawable.State.rendering`](/documentation/CompositorServices/LayerRenderer/Drawable/State-swift.enum/rendering)  state, you can begin drawing. Other states indicate the drawable is either busy or not assigned to a frame.

## Topics

### Getting the states

[`cp_drawable_state_available`](/documentation/CompositorServices/LayerRenderer/Drawable/State-swift.enum/available)

A drawable that’s not in use and ready for assignment to a frame.

[`cp_drawable_state_presenting`](/documentation/CompositorServices/LayerRenderer/Drawable/State-swift.enum/presenting)

A drawable that the compositor is currently displaying.

[`cp_drawable_state_rendering`](/documentation/CompositorServices/LayerRenderer/Drawable/State-swift.enum/rendering)

A drawable that’s assigned to a frame and ready to accept your drawing commands.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)