<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSCNNBinaryConvolutionType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:@E@MPSCNNBinaryConvolutionType"
  },
  "title" : "MPSCNNBinaryConvolutionType"
}
-->

# MPSCNNBinaryConvolutionType

Options that defines what operations are used to perform binary convolution.

```
enum MPSCNNBinaryConvolutionType
```

## Topics

### Enumeration Cases

[`MPSCNNBinaryConvolutionTypeAND`](/documentation/MetalPerformanceShaders/MPSCNNBinaryConvolutionType/AND)

A convolution type that uses input image binarization and the AND-operation.

[`MPSCNNBinaryConvolutionTypeXNOR`](/documentation/MetalPerformanceShaders/MPSCNNBinaryConvolutionType/XNOR)

A convolution type that uses input image binarization and the XNOR-operation.

[`MPSCNNBinaryConvolutionTypeBinaryWeights`](/documentation/MetalPerformanceShaders/MPSCNNBinaryConvolutionType/binaryWeights)

A convolution type that operates as a normal convolution, except that the weights are binary values.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)