Contents

CompositorLayerConfiguration

An interface for specifying the texture configurations and rendering behaviors to use with your Metal rendering engine.

Declaration

@MainActor @preconcurrency protocol CompositorLayerConfiguration

Mentioned in

Overview

If you use a custom configuration for your Metal rendering engine, adopt this protocol in a custom type and use it to specify the configuration options you need. In your custom type, implement the makeConfiguration(capabilities:configuration:) method and use it to modify the default set of rendering options. When specifying your configuration, validate choices against the actual capabilities of the current device.

For information on how to specify custom configuration options for your rendering engine, see Drawing fully immersive content using Metal.

Topics

Specifying the custom options

Getting the default options

See Also

App integration