pub struct RenderPipelineColorAttachmentDescriptorArray(/* private fields */);Expand description
Array of color attachment descriptors.
C++ equivalent: MTL::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 from a raw pointer.
§Safety
The pointer must be a valid color attachment descriptor array object.
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 attachmentIndex)
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 MTL::RenderPipelineColorAttachmentDescriptor* attachment, NS::UInteger attachmentIndex)
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_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