<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShadersGraph",
  "identifier" : "/documentation/MetalPerformanceShadersGraph/MPSGraphStencilOpDescriptor/explicitPadding",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal Performance Shaders Graph"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSGraphStencilOpDescriptor(py)explicitPadding"
  },
  "title" : "explicitPadding"
}
-->

# explicitPadding

The property that defines padding values for spatial dimensions.

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

## 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 ]`

---

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)