---
title: stencilAttachmentPixelFormat
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlmeshrenderpipelinedescriptor/stencilattachmentpixelformat
---

# stencilAttachmentPixelFormat

## Declaration

```swift
var stencilAttachmentPixelFormat: MTLPixelFormat { get set }
```
