pub struct RenderPipelineColorAttachmentDescriptorArray(/* private fields */);Expand description
Array of render pipeline color attachment descriptors.
C++ equivalent: MTL4::RenderPipelineColorAttachmentDescriptorArray
Implementations§
Source§impl RenderPipelineColorAttachmentDescriptorArray
impl RenderPipelineColorAttachmentDescriptorArray
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a RenderPipelineColorAttachmentDescriptorArray from a raw pointer.
Sourcepub fn object(
&self,
index: UInteger,
) -> Option<RenderPipelineColorAttachmentDescriptor>
pub fn object( &self, index: UInteger, ) -> Option<RenderPipelineColorAttachmentDescriptor>
Get the color attachment descriptor at the given index.
C++ equivalent: RenderPipelineColorAttachmentDescriptor* object(NS::UInteger)
Sourcepub fn set_object(
&self,
attachment: &RenderPipelineColorAttachmentDescriptor,
index: UInteger,
)
pub fn set_object( &self, attachment: &RenderPipelineColorAttachmentDescriptor, index: UInteger, )
Set the color attachment descriptor at the given index.
C++ equivalent: void setObject(const RenderPipelineColorAttachmentDescriptor*, NS::UInteger)
Trait Implementations§
Source§impl Referencing for RenderPipelineColorAttachmentDescriptorArray
impl Referencing for RenderPipelineColorAttachmentDescriptorArray
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 RenderPipelineColorAttachmentDescriptorArray
impl Sync for RenderPipelineColorAttachmentDescriptorArray
Auto Trait Implementations§
impl Freeze for RenderPipelineColorAttachmentDescriptorArray
impl RefUnwindSafe for RenderPipelineColorAttachmentDescriptorArray
impl Unpin for RenderPipelineColorAttachmentDescriptorArray
impl UnwindSafe for RenderPipelineColorAttachmentDescriptorArray
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