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