#[repr(transparent)]pub struct cp_layer_renderer_configuration_error_code(pub CFIndex);cp_error and objc2-core-foundation only.Expand description
Errors that can occur during layer configuration.
See also Apple’s documentation
Tuple Fields§
§0: CFIndexImplementations§
Source§impl cp_layer_renderer_configuration_error_code
impl cp_layer_renderer_configuration_error_code
Sourcepub const missing_configuration: Self
pub const missing_configuration: Self
An error that indicates the system didn’t find a default layer renderer configuration.
Sourcepub const unsupported_color_format: Self
pub const unsupported_color_format: Self
An error that indicates the layer doesn’t support the current pixel format for color textures.
Compare the value the cp_layer_renderer_configuration_get_color_format
function returns and make sure it matches one of the values the
cp_layer_renderer_capabilities_supported_color_format function returns.
Sourcepub const unsupported_color_usage: Self
pub const unsupported_color_usage: Self
An error that indicates the layer doesn’t support the current texture usage for color textures.
Compare the value the cp_layer_renderer_configuration_get_color_usage
function returns and make sure it has at least MTLTextureUsageShaderRead
and does not contain MTLTextureUsageShaderAtomic or MTLTextureUsageShaderWrite
Sourcepub const unsupported_depth_format: Self
pub const unsupported_depth_format: Self
An error that indicates the layer doesn’t support the current pixel format for depth textures.
Compare the value the cp_layer_renderer_configuration_get_depth_format
function returns and make sure it matches one of the values the
cp_layer_renderer_capabilities_supported_depth_format function returns.
Sourcepub const unsupported_depth_usage: Self
pub const unsupported_depth_usage: Self
An error that indicates the layer doesn’t support the current texture usage for depth textures.
Compare the value the cp_layer_renderer_configuration_get_depth_usage
function returns and make sure it has at least MTLTextureUsageShaderRead
and does not contain MTLTextureUsageShaderAtomic
Sourcepub const variable_rasterization_rate_is_not_supported: Self
pub const variable_rasterization_rate_is_not_supported: Self
An error that indicates foveation is enabled but not supported.
Disable foveation in your layer’s configuration.
Sourcepub const temporal_anti_aliasing_not_supported: Self
pub const temporal_anti_aliasing_not_supported: Self
An error that occurs when you try to enable temporal anti-aliasing but the current configuration parameters don’t support it.
Sourcepub const not_enough_frames_requested: Self
pub const not_enough_frames_requested: Self
An error that indicates not enough frames are available for rendering.
Sourcepub const too_many_frames_requested: Self
pub const too_many_frames_requested: Self
An error that indicates the system requested too many frames for rendering.
Sourcepub const unsupported_forward_depth_range: Self
pub const unsupported_forward_depth_range: Self
An error that indicates the depth range values aren’t in reverse-z order.
When you call the cp_drawable_set_depth_range function,
make sure the first value in your depth_range vector contains
the value for the far plane. In addition, make sure the distance
to the far plane is greater than the distance to the near plane.
Sourcepub const layout_not_supported: Self
pub const layout_not_supported: Self
An error that indicates the configuration’s current layout value is invalid.
Specify a supported layout value using the cp_layer_renderer_configuration_set_layout
function. Get a list of supported layouts from the
cp_layer_renderer_capabilities_supported_layout function.
Sourcepub const unsupported_near_plane_distance: Self
pub const unsupported_near_plane_distance: Self
An error that indicates the near plane of the client is smaller than the supported value.
Sourcepub const unsupported_tracking_areas_format: Self
pub const unsupported_tracking_areas_format: Self
An error that indicates the layer doesn’t support the current pixel format for tracking areas textures.
Compare the value the cp_layer_renderer_configuration_get_tracking_areas_format
function returns and make sure it matches one of the values the
cp_layer_renderer_capabilities_supported_tracking_areas_format function returns.
Sourcepub const unsupported_tracking_areas_usage: Self
pub const unsupported_tracking_areas_usage: Self
An error that indicates the layer doesn’t support the current texture usage for tracking areas textures.
Compare the value the cp_layer_renderer_configuration_get_tracking_areas_usage
function returns and make sure it has at least MTLTextureUsageShaderRead
and does not contain MTLTextureUsageShaderAtomic
Sourcepub const unsupported_drawable_render_context_stencil_format: Self
pub const unsupported_drawable_render_context_stencil_format: Self
An error that indicates the layer doesn’t support the current pixel format for stencil texture.
Compare the value the cp_layer_renderer_configuration_get_drawable_render_context_stencil_format
function returns and make sure it matches one of the values the
cp_layer_renderer_capabilities_drawable_render_context_supported_stencil_format function returns.
Sourcepub const unsupported_render_quality: Self
pub const unsupported_render_quality: Self
An error that indicates the configuration’s render quality is unsupported.
This could be because foveation is disabled or the quality is outside of the valid range of [0, 1],
the error userInfo will contain additional information.
Trait Implementations§
Source§impl Clone for cp_layer_renderer_configuration_error_code
impl Clone for cp_layer_renderer_configuration_error_code
Source§fn clone(&self) -> cp_layer_renderer_configuration_error_code
fn clone(&self) -> cp_layer_renderer_configuration_error_code
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Ord for cp_layer_renderer_configuration_error_code
impl Ord for cp_layer_renderer_configuration_error_code
Source§fn cmp(&self, other: &cp_layer_renderer_configuration_error_code) -> Ordering
fn cmp(&self, other: &cp_layer_renderer_configuration_error_code) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for cp_layer_renderer_configuration_error_code
impl PartialEq for cp_layer_renderer_configuration_error_code
Source§fn eq(&self, other: &cp_layer_renderer_configuration_error_code) -> bool
fn eq(&self, other: &cp_layer_renderer_configuration_error_code) -> bool
self and other values to be equal, and is used by ==.