<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/AxisDirectionConvention",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Compositor Services"
    ],
    "preciseIdentifier" : "c:@E@cp_axis_direction_convention"
  },
  "title" : "AxisDirectionConvention"
}
-->

# AxisDirectionConvention

Constants that indicate the axis and direction to use for a perspective projection matrix.

```
enum AxisDirectionConvention
```

## Topics

### Getting the axis directions

[`case rightUpBack`](/documentation/CompositorServices/AxisDirectionConvention/rightUpBack)

The convention that uses a counterclockwise winding order and positions the leading pixel at the top-left corner of the view.

[`case rightUpForward`](/documentation/CompositorServices/AxisDirectionConvention/rightUpForward)

The convention that uses a clockwise winding order and positions the leading pixel at the top-left corner of the view.

[`case rightDownBack`](/documentation/CompositorServices/AxisDirectionConvention/rightDownBack)

The convention that uses a counterclockwise winding order and positions the leading pixel at the bottom-left corner of the view.

[`case rightDownForward`](/documentation/CompositorServices/AxisDirectionConvention/rightDownForward)

The convention that uses a clockwise winding order and positions the leading pixel at the bottom-left corner of the view.

### Initializers

[`init?(rawValue: UInt8)`](/documentation/CompositorServices/AxisDirectionConvention/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

[`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)