Crate objc2_compositor_services

Source
Expand description

§Bindings to the CompositorServices framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

CP_OBJECT_cp_layer_rendererlayer_renderer
An opaque type that provides the Metal types and timing information you need to draw your content.
CP_OBJECT_cp_layer_renderer_capabilitieslayer_renderer_capabilities
A type that stores the supported configurations for a layer.
CP_OBJECT_cp_layer_renderer_configurationlayer_renderer_configuration
An opaque type that stores the settings to apply to a Compositor layer renderer.
CP_OBJECT_cp_layer_renderer_propertieslayer_renderer_properties
An opaque type that describes the organization of the layer’s textures and the relationships between those textures and the views you use for drawing.
cp_axis_direction_conventioncp_types
Axis direction convention for defining the X/Y/Z directions.
cp_drawabledrawable
Apple’s documentation
cp_drawable_statedrawable
The state of ownership for the drawable.
cp_frameframe
Apple’s documentation
cp_frame_timingframe_timing
Apple’s documentation
cp_layer_renderer_configuration_error_codecp_error and objc2-core-foundation
Errors that can occur during layer configuration.
cp_layer_renderer_layoutlayer_renderer_layout
Constants that specify the organization of the textures you use for drawing.
cp_layer_renderer_statelayer_renderer
The potential states of the layer renderer, which tell you how to proceed with drawing operations.
cp_supported_layouts_optionslayer_renderer_capabilities
The options to provide when calling cp_layer_renderer_capabilities_supported_layout and cp_layer_renderer_capabilities_supported_layouts_count
cp_texture_topologylayer_renderer_properties
Apple’s documentation
cp_timecp_types
A Mach absolute time clock value.
cp_viewview
Apple’s documentation
cp_view_texture_mapview
Apple’s documentation

Statics§

cp_layer_renderer_configuration_error_domaincp_error and objc2-core-foundation
The domain for errors that occur during layer renderer configuration.

Functions§

cp_drawable_encode_presentDeprecateddrawable and objc2-metal
cp_drawable_get_color_textureDeprecateddrawable and objc2-metal
cp_drawable_get_depth_textureDeprecateddrawable and objc2-metal
cp_drawable_get_flipped_rasterization_rate_mapDeprecateddrawable and objc2-metal
cp_drawable_get_frame_timingDeprecateddrawable and frame_timing
cp_drawable_get_presentation_frame_indexDeprecateddrawable and cp_types
cp_drawable_get_rasterization_rate_mapDeprecateddrawable and objc2-metal
cp_drawable_get_rasterization_rate_map_countDeprecateddrawable
cp_drawable_get_stateDeprecateddrawable
cp_drawable_get_texture_countDeprecateddrawable
cp_drawable_get_viewDeprecateddrawable and view
cp_drawable_get_view_countDeprecateddrawable
cp_frame_end_submissionDeprecatedframe
cp_frame_end_updateDeprecatedframe
cp_frame_get_frame_indexDeprecatedframe and cp_types
cp_frame_predict_timingDeprecatedframe and frame_timing
cp_frame_query_drawableDeprecatedframe and drawable
cp_frame_start_submissionDeprecatedframe
cp_frame_start_updateDeprecatedframe
cp_frame_timing_get_optimal_input_timeDeprecatedframe_timing and cp_types
cp_frame_timing_get_presentation_timeDeprecatedframe_timing and cp_types
cp_frame_timing_get_rendering_deadlineDeprecatedframe_timing and cp_types
cp_frame_timing_get_trackable_anchor_timeDeprecatedframe_timing and cp_types
cp_layer_renderer_capabilities_supported_color_formatlayer_renderer_capabilities and objc2-metal
Returns the color format at the specified index in the layer capabilities.
cp_layer_renderer_capabilities_supported_color_formats_countlayer_renderer_capabilities
Returns the number of color formats the specified layer supports.
cp_layer_renderer_capabilities_supported_depth_formatlayer_renderer_capabilities and objc2-metal
Returns the depth format at the specified index in the layer capabilities.
cp_layer_renderer_capabilities_supported_depth_formats_countlayer_renderer_capabilities
Returns the number of depth formats the specified layer supports.
cp_layer_renderer_capabilities_supported_layoutlayer_renderer_capabilities and layer_renderer_layout
Returns the layout at the specified index in the layer capabilities.
cp_layer_renderer_capabilities_supported_layouts_countlayer_renderer_capabilities
Returns the number of layouts the specified layer supports.
cp_layer_renderer_capabilities_supported_minimum_near_plane_distancelayer_renderer_capabilities
Returns the minimum distance in meters to the near projection plane that the layer supports.
cp_layer_renderer_capabilities_supports_foveationlayer_renderer_capabilities
Returns a Boolean value that indicates whether the layer supports variable rasterization rates.
cp_layer_renderer_configuration_get_color_formatlayer_renderer_configuration and objc2-metal
Returns the pixel format to use for the layer’s color textures.
cp_layer_renderer_configuration_get_color_usagelayer_renderer_configuration and objc2-metal
Returns the texture usage value to apply to the layer’s color textures.
cp_layer_renderer_configuration_get_depth_formatlayer_renderer_configuration and objc2-metal
Returns the pixel format to apply to the layer’s depth textures.
cp_layer_renderer_configuration_get_depth_usagelayer_renderer_configuration and objc2-metal
Returns the texture usage value to apply to the layer’s depth textures.
cp_layer_renderer_configuration_get_foveation_enabledlayer_renderer_configuration
Returns a Boolean value that indicates whether the layer supports variable rasterization rates.
cp_layer_renderer_configuration_get_generate_flipped_rasterization_rate_mapslayer_renderer_configuration
Returns a Boolean value that indicates whether the layer provides flipped variable rasterization rate maps in addition to the regular maps.
cp_layer_renderer_configuration_get_layoutlayer_renderer_configuration and layer_renderer_layout
Returns the texture configuration for the drawable views in the layer.
cp_layer_renderer_configuration_set_color_formatlayer_renderer_configuration and objc2-metal
Sets the pixel format for the layer’s color textures to the specified value.
cp_layer_renderer_configuration_set_color_usagelayer_renderer_configuration and objc2-metal
Sets the texture usage for the layer’s color textures to the specified value.
cp_layer_renderer_configuration_set_depth_formatlayer_renderer_configuration and objc2-metal
Sets the pixel format for the layer’s depth textures to the specified value.
cp_layer_renderer_configuration_set_depth_usagelayer_renderer_configuration and objc2-metal
Sets the texture usage for the layer’s depth textures to the specified value.
cp_layer_renderer_configuration_set_foveation_enabledlayer_renderer_configuration
Changes the setting that indicates whether the layer supports variable rasterization rates.
cp_layer_renderer_configuration_set_generate_flipped_rasterization_rate_mapslayer_renderer_configuration
Changes the setting that indicates whether the layer provides flipped variable rasterization rate maps in addition to the regular maps.
cp_layer_renderer_configuration_set_layoutlayer_renderer_configuration and layer_renderer_layout
Changes the layout configuration for the drawable views in the layer.
cp_layer_renderer_get_configurationlayer_renderer and layer_renderer_configuration
Returns the configuration details you used to create the specified layer.
cp_layer_renderer_get_devicelayer_renderer and objc2-metal
Returns the GPU interface that the layer uses for drawing operations.
cp_layer_renderer_get_minimum_frame_repeat_countlayer_renderer
Return how many times a frame is repeated on display. This is typically used to build dynamic frame pacing.
cp_layer_renderer_get_propertieslayer_renderer and layer_renderer_properties
Returns the configured properties of the specified layer renderer.
cp_layer_renderer_get_statelayer_renderer
Returns the layer’s current state, which indicates whether the layer is visible and ready for you to draw content.
cp_layer_renderer_properties_create_using_configurationlayer_renderer_configuration and layer_renderer_properties and objc2-core-foundation
Creates a new opaque type to store layer-related properties.
cp_layer_renderer_properties_get_texture_topologylayer_renderer_properties
Retrieves the texture topology at the specified index in the layer’s properties.
cp_layer_renderer_properties_get_texture_topology_countlayer_renderer_properties
Returns the number of texture topologies available for you to inspect.
cp_layer_renderer_properties_get_view_countlayer_renderer_properties
Returns the number of views that will need to be rendered.
cp_layer_renderer_query_next_framelayer_renderer and frame
Returns the next frame to use for drawing.
cp_layer_renderer_set_minimum_frame_repeat_countlayer_renderer
Set the frame repeat count. This is typically used to build dynamic frame pacing.
cp_layer_renderer_wait_until_runninglayer_renderer
Stops further execution of your code until the layer renderer leaves the paused state.
cp_releasecp_base
Decrement the reference count of the specified object.
cp_retaincp_base
Increments the reference count of the specified object.
cp_texture_topology_get_array_lengthDeprecatedlayer_renderer_properties
cp_texture_topology_get_texture_typeDeprecatedlayer_renderer_properties and objc2-metal
cp_time_to_cf_time_intervalDeprecatedcp_types and objc2-core-foundation
cp_time_wait_untilDeprecatedcp_types
cp_view_get_view_texture_mapDeprecatedview
cp_view_texture_map_get_slice_indexDeprecatedview
cp_view_texture_map_get_texture_indexDeprecatedview
cp_view_texture_map_get_viewportDeprecatedview and objc2-metal

Type Aliases§

cp_compositor_frame_index_tcp_types
The sequential index for a frame in the compositor’s timeline.
cp_drawable_tdrawable
An opaque type that contains the textures and other information you need to set up your render pipeline.
cp_frame_tframe
An opaque type that provides access to the timing information and data types you need to render a single frame of content.
cp_frame_timing_tframe_timing
An opaque type that stores information about a frame’s encoding, rendering, and presentation deadlines.
cp_layer_frame_index_tcp_types
A frame index in the layer’s timeline.
cp_layer_renderer_capabilities_tlayer_renderer_capabilities
A type that stores the supported configurations for a layer.
cp_layer_renderer_configuration_tlayer_renderer_configuration
An opaque type that stores the settings to apply to a Compositor layer renderer.
cp_layer_renderer_properties_tlayer_renderer_properties
An opaque type that describes the organization of the layer’s textures and the relationships between those textures and the views you use for drawing.
cp_layer_renderer_tlayer_renderer
An opaque type that provides the Metal types and timing information you need to draw your content.
cp_texture_topology_tlayer_renderer_properties
An opaque type that specifies the configuration of one of the layer’s drawable textures.
cp_time_tcp_types
A Mach absolute time clock value.
cp_view_tview
An opaque type that manages the information for how to render content into the current frame.
cp_view_texture_map_tview
An opaque type that describes the relationship between a view and the underlying texture.