#[repr(transparent)]pub struct MTL4LogicalToPhysicalColorAttachmentMappingState(pub NSInteger);Available on crate feature
MTL4RenderPipeline only.Expand description
Enumerates possible behaviors of how a pipeline maps its logical outputs to its color attachments.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl MTL4LogicalToPhysicalColorAttachmentMappingState
impl MTL4LogicalToPhysicalColorAttachmentMappingState
Sourcepub const Identity: Self
pub const Identity: Self
Treats the logical color attachment descriptor array for render and tile render pipelines to match the physical one.
This is the default behavior, which produces an identity mapping.
Sourcepub const Inherited: Self
pub const Inherited: Self
Deduces the color attachment mapping by inheriting it from the color attachment map of the current encoder.
Use this setting to indicate Metal should inherit the mapping from the colorAttachmentMap property of the current
MTL4RenderCommandEncoder or MTLRenderCommandEncoder in use at draw time.
Trait Implementations§
Source§impl Clone for MTL4LogicalToPhysicalColorAttachmentMappingState
impl Clone for MTL4LogicalToPhysicalColorAttachmentMappingState
Source§fn clone(&self) -> MTL4LogicalToPhysicalColorAttachmentMappingState
fn clone(&self) -> MTL4LogicalToPhysicalColorAttachmentMappingState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Ord for MTL4LogicalToPhysicalColorAttachmentMappingState
impl Ord for MTL4LogicalToPhysicalColorAttachmentMappingState
Source§fn cmp(
&self,
other: &MTL4LogicalToPhysicalColorAttachmentMappingState,
) -> Ordering
fn cmp( &self, other: &MTL4LogicalToPhysicalColorAttachmentMappingState, ) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MTL4LogicalToPhysicalColorAttachmentMappingState
impl PartialEq for MTL4LogicalToPhysicalColorAttachmentMappingState
Source§fn eq(&self, other: &MTL4LogicalToPhysicalColorAttachmentMappingState) -> bool
fn eq(&self, other: &MTL4LogicalToPhysicalColorAttachmentMappingState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MTL4LogicalToPhysicalColorAttachmentMappingState
impl PartialOrd for MTL4LogicalToPhysicalColorAttachmentMappingState
Source§impl RefEncode for MTL4LogicalToPhysicalColorAttachmentMappingState
impl RefEncode for MTL4LogicalToPhysicalColorAttachmentMappingState
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MTL4LogicalToPhysicalColorAttachmentMappingState
impl Eq for MTL4LogicalToPhysicalColorAttachmentMappingState
impl StructuralPartialEq for MTL4LogicalToPhysicalColorAttachmentMappingState
Auto Trait Implementations§
impl Freeze for MTL4LogicalToPhysicalColorAttachmentMappingState
impl RefUnwindSafe for MTL4LogicalToPhysicalColorAttachmentMappingState
impl Send for MTL4LogicalToPhysicalColorAttachmentMappingState
impl Sync for MTL4LogicalToPhysicalColorAttachmentMappingState
impl Unpin for MTL4LogicalToPhysicalColorAttachmentMappingState
impl UnwindSafe for MTL4LogicalToPhysicalColorAttachmentMappingState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.