---
title: explicitPadding
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphstencilopdescriptor/explicitpadding
---

# explicitPadding

The property that defines padding values for spatial dimensions.

## Declaration

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

## Discussion

Discussion Must be eight numbers, two for each spatial dimension. 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 ]
