cp_layer_renderer_configuration_error_code

Struct cp_layer_renderer_configuration_error_code 

Source
#[repr(transparent)]
pub struct cp_layer_renderer_configuration_error_code(pub CFIndex);
Available on crate features cp_error and objc2-core-foundation only.
Expand description

Errors that can occur during layer configuration.

See also Apple’s documentation

Tuple Fields§

§0: CFIndex

Implementations§

Source§

impl cp_layer_renderer_configuration_error_code

Source

pub const missing_configuration: Self

An error that indicates the system didn’t find a default layer renderer configuration.

Source

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.

Source

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

Source

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.

Source

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

Source

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.

Source

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.

Source

pub const not_enough_frames_requested: Self

An error that indicates not enough frames are available for rendering.

Source

pub const too_many_frames_requested: Self

An error that indicates the system requested too many frames for rendering.

Source

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.

Source

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.

Source

pub const unsupported_near_plane_distance: Self

An error that indicates the near plane of the client is smaller than the supported value.

Source

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.

Source

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

Source

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.

Source

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

Source§

fn clone(&self) -> cp_layer_renderer_configuration_error_code

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for cp_layer_renderer_configuration_error_code

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Encode for cp_layer_renderer_configuration_error_code

Source§

const ENCODING: Encoding = CFIndex::ENCODING

The Objective-C type-encoding for this type.
Source§

impl Hash for cp_layer_renderer_configuration_error_code

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for cp_layer_renderer_configuration_error_code

Source§

fn cmp(&self, other: &cp_layer_renderer_configuration_error_code) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for cp_layer_renderer_configuration_error_code

Source§

fn eq(&self, other: &cp_layer_renderer_configuration_error_code) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for cp_layer_renderer_configuration_error_code

Source§

fn partial_cmp( &self, other: &cp_layer_renderer_configuration_error_code, ) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl RefEncode for cp_layer_renderer_configuration_error_code

Source§

const ENCODING_REF: Encoding

The Objective-C type-encoding for a reference of this type. Read more
Source§

impl Copy for cp_layer_renderer_configuration_error_code

Source§

impl Eq for cp_layer_renderer_configuration_error_code

Source§

impl StructuralPartialEq for cp_layer_renderer_configuration_error_code

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> EncodeArgument for T
where T: Encode,

Source§

const ENCODING_ARGUMENT: Encoding = T::ENCODING

The Objective-C type-encoding for this type.
Source§

impl<T> EncodeReturn for T
where T: Encode,

Source§

const ENCODING_RETURN: Encoding = T::ENCODING

The Objective-C type-encoding for this type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,