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

# cp_layer_renderer_configuration_set_supports_mtl4

Set whether the layer can use Metal4 when drawing to the drawables.

## Declaration

```occ
void cp_layer_renderer_configuration_set_supports_mtl4(cp_layer_renderer_configuration_t configuration, bool supports_mtl4);
```

## Parameters

- `configuration`: The layer configuration type to modify. 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.
- `supports_mtl4`: Whether the layer supports using Metal4, otherwise defaults to Metal3.
