---
title: paddingValues
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/paddingvalues
---

# paddingValues

Defines padding values for spatial dimensions which must be eight numbers, two for each spatial dimension.

## Declaration

```swift
var paddingValues: [NSNumber] { get set }
```

## Discussion

Discussion For example paddingValues[0] defines the explicit padding amount before the first spatial dimension (slowest running index of spatial dimensions), paddingValues[1] defines the padding amount after the first spatial dimension etc. Used only when paddingStyle = MPSGraphPaddingStyleExplicit. Default value: @[ @0, @0, @0, @0, @0, @0, @0, @0 ]
