pub struct RenderPassSampleBufferAttachmentDescriptorArray(/* private fields */);Expand description
An array of render pass sample buffer attachment descriptors.
C++ equivalent: MTL::RenderPassSampleBufferAttachmentDescriptorArray
Implementations§
Source§impl RenderPassSampleBufferAttachmentDescriptorArray
impl RenderPassSampleBufferAttachmentDescriptorArray
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new array.
C++ equivalent: static RenderPassSampleBufferAttachmentDescriptorArray* alloc()->init()
Sourcepub fn object(
&self,
index: UInteger,
) -> Option<RenderPassSampleBufferAttachmentDescriptor>
pub fn object( &self, index: UInteger, ) -> Option<RenderPassSampleBufferAttachmentDescriptor>
Get the descriptor at the specified index.
C++ equivalent: RenderPassSampleBufferAttachmentDescriptor* object(NS::UInteger attachmentIndex)
Sourcepub fn set_object(
&self,
attachment: Option<&RenderPassSampleBufferAttachmentDescriptor>,
index: UInteger,
)
pub fn set_object( &self, attachment: Option<&RenderPassSampleBufferAttachmentDescriptor>, index: UInteger, )
Set the descriptor at the specified index.
C++ equivalent: void setObject(const MTL::RenderPassSampleBufferAttachmentDescriptor* attachment, NS::UInteger attachmentIndex)
Trait Implementations§
Source§impl Referencing for RenderPassSampleBufferAttachmentDescriptorArray
impl Referencing for RenderPassSampleBufferAttachmentDescriptorArray
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 RenderPassSampleBufferAttachmentDescriptorArray
impl Sync for RenderPassSampleBufferAttachmentDescriptorArray
Auto Trait Implementations§
impl Freeze for RenderPassSampleBufferAttachmentDescriptorArray
impl RefUnwindSafe for RenderPassSampleBufferAttachmentDescriptorArray
impl Unpin for RenderPassSampleBufferAttachmentDescriptorArray
impl UnwindSafe for RenderPassSampleBufferAttachmentDescriptorArray
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