---
title: paddingStyle
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor/paddingstyle
---

# paddingStyle

The type of padding applied to the source tensor.

## Declaration

```swift
var paddingStyle: MPSGraphPaddingStyle { get set }
```

## Discussion

Discussion If paddingStyle is MPSGraphPaddingStyleExplicit, paddingLeft, laddingRight, paddingTop, and paddingBottom must to be specified. For all other padding styles, framework compute these values so you dont need to provide these values.
