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