<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Capabilities/drawableRenderContextSupportedStencilFormats",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "s:So27CP_OBJECT_cp_layer_rendererC18CompositorServicesE12CapabilitiesV44drawableRenderContextSupportedStencilFormatsSaySo14MTLPixelFormatVGvp"
  },
  "title" : "drawableRenderContextSupportedStencilFormats"
}
-->

# drawableRenderContextSupportedStencilFormats

An array of metal pixel formats the layer renderer drawable supports with its render context.

```
var drawableRenderContextSupportedStencilFormats: [MTLPixelFormat] { get }
```

## Discussion

The pixel formats in this property tell you which <doc://com.apple.documentation/documentation/Metal/MTLPixelFormat> pixel arrangements and characteristics the layer supports for its stencil textures with the `RenderContext`.

> Note: Pixel formats are further detailed in [Metal Feature Set Tables](https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf).

---

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)