---
title: drawableRenderContextStencilFormat
framework: compositorservices
role: symbol
role_heading: Instance Property
path: compositorservices/layerrenderer/configuration-swift.struct/drawablerendercontextstencilformat
---

# drawableRenderContextStencilFormat

The metal pixel format matching that of the stencil texture used in the layer renderer drawable’s render context.

## Declaration

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

## Discussion

Discussion This value corresponds to the pixel format of the stencil texture you attach to your Metal pipeline. note: For more information, see MTLRenderPassAttachmentDescriptor.

## See Also

### Configurating the render context

- [drawableRenderContextRasterSampleCount](compositorservices/layerrenderer/configuration-swift.struct/drawablerendercontextrastersamplecount.md)
