---
title: MPSGraphPaddingMode
framework: metalperformanceshadersgraph
role: symbol
role_heading: Enumeration
path: metalperformanceshadersgraph/mpsgraphpaddingmode
---

# MPSGraphPaddingMode

The tensor padding mode.

## Declaration

```swift
enum MPSGraphPaddingMode
```

## Topics

### Enumeration Cases

- [MPSGraphPaddingMode.antiPeriodic](metalperformanceshadersgraph/mpsgraphpaddingmode/antiperiodic.md)
- [MPSGraphPaddingMode.clampToEdge](metalperformanceshadersgraph/mpsgraphpaddingmode/clamptoedge.md)
- [MPSGraphPaddingMode.constant](metalperformanceshadersgraph/mpsgraphpaddingmode/constant.md)
- [MPSGraphPaddingMode.periodic](metalperformanceshadersgraph/mpsgraphpaddingmode/periodic.md)
- [MPSGraphPaddingMode.reflect](metalperformanceshadersgraph/mpsgraphpaddingmode/reflect.md)
- [MPSGraphPaddingMode.symmetric](metalperformanceshadersgraph/mpsgraphpaddingmode/symmetric.md)
- [MPSGraphPaddingMode.zero](metalperformanceshadersgraph/mpsgraphpaddingmode/zero.md)

### Initializers

- [init(rawValue:)](metalperformanceshadersgraph/mpsgraphpaddingmode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
