<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSNNBinaryArithmeticNode",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSNNBinaryArithmeticNode"
  },
  "title" : "MPSNNBinaryArithmeticNode"
}
-->

# MPSNNBinaryArithmeticNode

Virtual base class for basic arithmetic nodes.

```
class MPSNNBinaryArithmeticNode
```

## Topics

### Initializers

[`-  initWithLeftSource:rightSource:`](/documentation/MetalPerformanceShaders/MPSNNBinaryArithmeticNode/init(leftSource:rightSource:))

[`-  initWithSources:`](/documentation/MetalPerformanceShaders/MPSNNBinaryArithmeticNode/init(sources:))

### Type Methods

[`+  nodeWithLeftSource:rightSource:`](/documentation/MetalPerformanceShaders/MPSNNBinaryArithmeticNode/nodeWithLeftSource:rightSource:)

[`+  nodeWithSources:`](/documentation/MetalPerformanceShaders/MPSNNBinaryArithmeticNode/nodeWithSources:)

## Relationships

### Inherited By

[`MPSNNDivisionNode`](/documentation/MetalPerformanceShaders/MPSNNDivisionNode)

[`MPSNNSubtractionNode`](/documentation/MetalPerformanceShaders/MPSNNSubtractionNode)

[`MPSNNComparisonNode`](/documentation/MetalPerformanceShaders/MPSNNComparisonNode)

[`MPSNNMultiplicationNode`](/documentation/MetalPerformanceShaders/MPSNNMultiplicationNode)

[`MPSNNAdditionNode`](/documentation/MetalPerformanceShaders/MPSNNAdditionNode)

### Conforms To

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

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

### Inherits From

[`MPSNNFilterNode`](/documentation/MetalPerformanceShaders/MPSNNFilterNode)

---

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)