---
title: UnaryOperation
framework: Compute Graph
role: symbol
role_heading: Enumeration
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/unaryoperation
---

# UnaryOperation

An enumeration of single-operand operations.

## Declaration

```swift
enum UnaryOperation
```

## Overview

Overview These follow Metal’s rules for compatibility with operands.

## Topics

### Enumeration Cases

- [UnaryOperation.bitwiseNot](computegraph/unaryoperation/bitwisenot.md)
- [UnaryOperation.logicalNot](computegraph/unaryoperation/logicalnot.md)
- [UnaryOperation.negate](computegraph/unaryoperation/negate.md)
- [UnaryOperation.oneMinus](computegraph/unaryoperation/oneminus.md)

## Relationships

### Conforms To

- [CaseIterable](swift/caseiterable.md)
- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Node parameters and connections

- [PortReference](computegraph/portreference.md)
- [BinaryOperation](computegraph/binaryoperation.md)
- [StandardLibraryFunction](computegraph/standardlibraryfunction.md)
