pub struct RenderPassColorAttachmentDescriptorArray(/* private fields */);Expand description
An array of color attachment descriptors.
C++ equivalent: MTL::RenderPassColorAttachmentDescriptorArray
Implementations§
Source§impl RenderPassColorAttachmentDescriptorArray
impl RenderPassColorAttachmentDescriptorArray
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a RenderPassColorAttachmentDescriptorArray from a raw pointer.
§Safety
The pointer must be a valid Metal render pass color attachment descriptor array object.
Sourcepub fn object_at(
&self,
index: UInteger,
) -> Option<RenderPassColorAttachmentDescriptor>
pub fn object_at( &self, index: UInteger, ) -> Option<RenderPassColorAttachmentDescriptor>
Get the color attachment descriptor at the specified index.
C++ equivalent: RenderPassColorAttachmentDescriptor* object(NS::UInteger)
Sourcepub fn set_object_at(
&self,
attachment: Option<&RenderPassColorAttachmentDescriptor>,
index: UInteger,
)
pub fn set_object_at( &self, attachment: Option<&RenderPassColorAttachmentDescriptor>, index: UInteger, )
Set the color attachment descriptor at the specified index.
C++ equivalent: void setObject(const RenderPassColorAttachmentDescriptor*, NS::UInteger)
Trait Implementations§
Source§impl Referencing for RenderPassColorAttachmentDescriptorArray
impl Referencing for RenderPassColorAttachmentDescriptorArray
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
Auto Trait Implementations§
impl Freeze for RenderPassColorAttachmentDescriptorArray
impl RefUnwindSafe for RenderPassColorAttachmentDescriptorArray
impl !Send for RenderPassColorAttachmentDescriptorArray
impl !Sync for RenderPassColorAttachmentDescriptorArray
impl Unpin for RenderPassColorAttachmentDescriptorArray
impl UnwindSafe for RenderPassColorAttachmentDescriptorArray
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