---
title: cp_layer_renderer_configuration_get_drawable_render_context_stencil_format
framework: compositorservices
role: symbol
role_heading: Function
path: compositorservices/cp_layer_renderer_configuration_get_drawable_render_context_stencil_format
---

# cp_layer_renderer_configuration_get_drawable_render_context_stencil_format

Returns the pixel format to use for the stencil texture in drawable’s render context.

## Declaration

```occ
MTLPixelFormat cp_layer_renderer_configuration_get_drawable_render_context_stencil_format(cp_layer_renderer_configuration_t configuration);
```

## Parameters

- `configuration`: The layer configuration type that contains the information. The system passes an instance of this type to the doc://com.apple.compositorservices/documentation/CompositorServices/CompositorLayerConfiguration/makeConfiguration(capabilities:configuration:) method of your configuration provider.

## Return Value

Return Value The pixel format to use for the drawable’s render context stencil textures.
