---
title: BinaryOperation
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/binaryoperation
---

# BinaryOperation

An enumeration of binary operations.

## Declaration

```swift
enum BinaryOperation
```

## Overview

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

## Topics

### Enumeration Cases

- [BinaryOperation.add](computegraph/binaryoperation/add.md)
- [BinaryOperation.bitwiseAnd](computegraph/binaryoperation/bitwiseand.md)
- [BinaryOperation.bitwiseOr](computegraph/binaryoperation/bitwiseor.md)
- [BinaryOperation.bitwiseXor](computegraph/binaryoperation/bitwisexor.md)
- [BinaryOperation.div](computegraph/binaryoperation/div.md)
- [BinaryOperation.equalTo](computegraph/binaryoperation/equalto.md)
- [BinaryOperation.greaterThan](computegraph/binaryoperation/greaterthan.md)
- [BinaryOperation.greaterThanOrEqual](computegraph/binaryoperation/greaterthanorequal.md)
- [BinaryOperation.lessThan](computegraph/binaryoperation/lessthan.md)
- [BinaryOperation.lessThanOrEqual](computegraph/binaryoperation/lessthanorequal.md)
- [BinaryOperation.logicalAnd](computegraph/binaryoperation/logicaland.md)
- [BinaryOperation.logicalOr](computegraph/binaryoperation/logicalor.md)
- [BinaryOperation.modulus](computegraph/binaryoperation/modulus.md)
- [BinaryOperation.mul](computegraph/binaryoperation/mul.md)
- [BinaryOperation.notEqualTo](computegraph/binaryoperation/notequalto.md)
- [BinaryOperation.shiftLeft](computegraph/binaryoperation/shiftleft.md)
- [BinaryOperation.shiftRight](computegraph/binaryoperation/shiftright.md)
- [BinaryOperation.sub](computegraph/binaryoperation/sub.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)
- [UnaryOperation](computegraph/unaryoperation.md)
- [StandardLibraryFunction](computegraph/standardlibraryfunction.md)
