<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/UnaryOperation",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph14UnaryOperationO"
  },
  "title" : "UnaryOperation"
}
-->

# UnaryOperation

An enumeration of single-operand operations.

```
enum UnaryOperation
```

## Overview

These follow Metal’s rules for compatibility with operands.

## Topics

### Enumeration Cases

[`case bitwiseNot`](/documentation/ComputeGraph/UnaryOperation/bitwiseNot)

[`case logicalNot`](/documentation/ComputeGraph/UnaryOperation/logicalNot)

[`case negate`](/documentation/ComputeGraph/UnaryOperation/negate)

[`case oneMinus`](/documentation/ComputeGraph/UnaryOperation/oneMinus)

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

---

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)