---
title: LayerRendererConfigurationError.unsupportedDrawableRenderContextStencilFormat
framework: Compositor Services
role: symbol
role_heading: Case
platforms: [macOS 26.0+, visionOS 26.0+]
path: compositorservices/layerrendererconfigurationerror/unsupporteddrawablerendercontextstencilformat
---

# LayerRendererConfigurationError.unsupportedDrawableRenderContextStencilFormat

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

## Declaration

```swift
case unsupportedDrawableRenderContextStencilFormat
```

## Discussion

Discussion Compare the value that the 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 function returns.

## See Also

### Getting the configuration errors

- [LayerRendererConfigurationError.layoutNotSupported](compositorservices/layerrendererconfigurationerror/layoutnotsupported.md)
- [LayerRendererConfigurationError.missingConfiguration](compositorservices/layerrendererconfigurationerror/missingconfiguration.md)
- [LayerRendererConfigurationError.notEnoughFramesRequested](compositorservices/layerrendererconfigurationerror/notenoughframesrequested.md)
- [LayerRendererConfigurationError.temporalAntiAliasingNotSupported](compositorservices/layerrendererconfigurationerror/temporalantialiasingnotsupported.md)
- [LayerRendererConfigurationError.tooManyFramesRequested](compositorservices/layerrendererconfigurationerror/toomanyframesrequested.md)
- [LayerRendererConfigurationError.unsupportedForwardDepthRange](compositorservices/layerrendererconfigurationerror/unsupportedforwarddepthrange.md)
- [LayerRendererConfigurationError.unsupportedNearPlaneDistance](compositorservices/layerrendererconfigurationerror/unsupportednearplanedistance.md)
- [LayerRendererConfigurationError.variableRasterizationRateIsNotSupported](compositorservices/layerrendererconfigurationerror/variablerasterizationrateisnotsupported.md)
- [LayerRendererConfigurationError.unsupportedColorFormat](compositorservices/layerrendererconfigurationerror/unsupportedcolorformat.md)
- [LayerRendererConfigurationError.unsupportedColorUsage](compositorservices/layerrendererconfigurationerror/unsupportedcolorusage.md)
- [LayerRendererConfigurationError.unsupportedDepthFormat](compositorservices/layerrendererconfigurationerror/unsupporteddepthformat.md)
- [LayerRendererConfigurationError.unsupportedDepthUsage](compositorservices/layerrendererconfigurationerror/unsupporteddepthusage.md)
- [LayerRendererConfigurationError.unsupportedRenderQuality](compositorservices/layerrendererconfigurationerror/unsupportedrenderquality.md)
