<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRendererConfigurationError/unsupportedDrawableRenderContextStencilFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Compositor Services"
    ],
    "preciseIdentifier" : "s:18CompositorServices31LayerRendererConfigurationErrorO45unsupportedDrawableRenderContextStencilFormatyA2CmF"
  },
  "title" : "LayerRendererConfigurationError.unsupportedDrawableRenderContextStencilFormat"
}
-->

# LayerRendererConfigurationError.unsupportedDrawableRenderContextStencilFormat

An error that indicates the layer doesn’t support the current pixel format for the stencil texture.

```
case unsupportedDrawableRenderContextStencilFormat
```

## Discussion

Compare the value that the [`cp_layer_renderer_configuration_get_drawable_render_context_stencil_format`](/documentation/CompositorServices/cp_layer_renderer_configuration_get_drawable_render_context_stencil_format) function returns and make sure it matches one of the values that the [`cp_layer_renderer_capabilities_drawable_render_context_supported_stencil_format`](/documentation/CompositorServices/cp_layer_renderer_capabilities_drawable_render_context_supported_stencil_format) function returns.

---

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)