cp_layer_renderer_configuration_get_tracking_areas_usage
Returns the texture usage value to apply to the layer’s tracking areas textures.
Declaration
MTLTextureUsage cp_layer_renderer_configuration_get_tracking_areas_usage(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 Makeconfiguration(capabilities:configuration:) method of your configuration provider.
Return Value
The Metal texture usage value to apply to the layer’s tracking areas textures.
Discussion
Metal optimizes texture-related operations based on the texture’s usage value. The usage value can be a combination of options. For example, a texture might be readable and writable. For more information, see MTLTextureUsage.