pub struct TileRenderPipelineColorAttachmentDescriptorArray(/* private fields */);Expand description
An array of tile render pipeline color attachment descriptors.
C++ equivalent: MTL::TileRenderPipelineColorAttachmentDescriptorArray
Implementations§
Source§impl TileRenderPipelineColorAttachmentDescriptorArray
impl TileRenderPipelineColorAttachmentDescriptorArray
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 tile render pipeline color attachment descriptor array.
Sourcepub fn object(
&self,
index: UInteger,
) -> Option<TileRenderPipelineColorAttachmentDescriptor>
pub fn object( &self, index: UInteger, ) -> Option<TileRenderPipelineColorAttachmentDescriptor>
Get the descriptor at the specified index.
C++ equivalent: TileRenderPipelineColorAttachmentDescriptor* object(NS::UInteger attachmentIndex)
Sourcepub fn set_object(
&self,
descriptor: Option<&TileRenderPipelineColorAttachmentDescriptor>,
index: UInteger,
)
pub fn set_object( &self, descriptor: Option<&TileRenderPipelineColorAttachmentDescriptor>, index: UInteger, )
Set the descriptor at the specified index.
C++ equivalent: void setObject(const TileRenderPipelineColorAttachmentDescriptor*, NS::UInteger)
Trait Implementations§
Source§impl Referencing for TileRenderPipelineColorAttachmentDescriptorArray
impl Referencing for TileRenderPipelineColorAttachmentDescriptorArray
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 TileRenderPipelineColorAttachmentDescriptorArray
impl Sync for TileRenderPipelineColorAttachmentDescriptorArray
Auto Trait Implementations§
impl Freeze for TileRenderPipelineColorAttachmentDescriptorArray
impl RefUnwindSafe for TileRenderPipelineColorAttachmentDescriptorArray
impl Unpin for TileRenderPipelineColorAttachmentDescriptorArray
impl UnwindSafe for TileRenderPipelineColorAttachmentDescriptorArray
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