CompositorServices provides a Metal-based layer renderer and frame and drawable pipeline for drawing immersive stereoscopic content in visionOS spatial scenes. You drive rendering through a LayerRenderer, which manages the frame-and-drawable loop that delivers your Metal-drawn content to the compositor. Configure the renderer using types such as TextureTopology and AxisDirectionConvention, and handle setup failures through LayerRendererConfigurationError. The framework is available on visionOS and macOS.
Rendering 1
The layer renderer that manages the frame-and-drawable loop delivering your Metal content to the compositor.
- ClLayerRenderervisionOS 1.0+An opaque type that provides the Metal types and timing
Configuration 2
Types that describe how the renderer lays out and orients the textures it draws into.
- StTextureTopologyvisionOS 1.0+An opaque type that specifies the configuration of one of the layer’s
- EnAxisDirectionConventionvisionOS 2.0+Axis direction convention for defining the X/Y/Z directions.
Errors 2
Values that report failures encountered while configuring the layer renderer.
- EnLayerRendererConfigurationErrormacOS 26.0+Errors that can occur during layer renderer configuration.
- St__cp_layer_renderer_configuration_error_codevisionOS 1.0+A structure of error codes that identify failures encountered while configuring a layer renderer.
Structures 2
- StCompositorLayervisionOS 1.0+An `ImmersiveSpaceContent` that renders content using a Compositor `LayerRenderer`.
- StDefaultCompositorLayerConfigurationmacOS 26.0+
Protocols 1
- PrCompositorLayerConfigurationmacOS 26.0+
Type Aliases 4
- TyLayerFrameIndexA frame index in the layer’s timeline.
- TyCompositorFrameIndexThe sequential index for a frame in the compositor’s timeline.
- Tycp_drawable_array_tAn opaque type that contains the drawable types and other information
- Tycp_hover_effect_tAn opaque type that describes a hover effect of the tracking area.