pub struct LogicalToPhysicalColorAttachmentMap(/* private fields */);Expand description
Maps logical color attachment indices to physical indices.
C++ equivalent: MTL::LogicalToPhysicalColorAttachmentMap
Implementations§
Source§impl LogicalToPhysicalColorAttachmentMap
impl LogicalToPhysicalColorAttachmentMap
Sourcepub fn alloc() -> Option<Self>
pub fn alloc() -> Option<Self>
Allocate a new logical to physical color attachment map.
C++ equivalent: static LogicalToPhysicalColorAttachmentMap* alloc()
Sourcepub fn init(&self) -> Option<Self>
pub fn init(&self) -> Option<Self>
Initialize an allocated map.
C++ equivalent: LogicalToPhysicalColorAttachmentMap* init()
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create from a raw pointer.
§Safety
The pointer must be a valid Metal logical to physical color attachment map.
Sourcepub fn physical_index(&self, logical_index: UInteger) -> UInteger
pub fn physical_index(&self, logical_index: UInteger) -> UInteger
Get the physical index for a logical index.
C++ equivalent: NS::UInteger getPhysicalIndex(NS::UInteger logicalIndex)
Sourcepub fn set_physical_index(
&self,
physical_index: UInteger,
logical_index: UInteger,
)
pub fn set_physical_index( &self, physical_index: UInteger, logical_index: UInteger, )
Set the physical index for a logical index.
C++ equivalent: void setPhysicalIndex(NS::UInteger physicalIndex, NS::UInteger logicalIndex)
Trait Implementations§
Source§impl Referencing for LogicalToPhysicalColorAttachmentMap
impl Referencing for LogicalToPhysicalColorAttachmentMap
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for LogicalToPhysicalColorAttachmentMap
impl Sync for LogicalToPhysicalColorAttachmentMap
Auto Trait Implementations§
impl Freeze for LogicalToPhysicalColorAttachmentMap
impl RefUnwindSafe for LogicalToPhysicalColorAttachmentMap
impl Unpin for LogicalToPhysicalColorAttachmentMap
impl UnwindSafe for LogicalToPhysicalColorAttachmentMap
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