pub struct ResourceStatePassSampleBufferAttachmentDescriptorArray(/* private fields */);Expand description
An array of sample buffer attachment descriptors for resource state passes.
C++ equivalent: MTL::ResourceStatePassSampleBufferAttachmentDescriptorArray
Implementations§
Source§impl ResourceStatePassSampleBufferAttachmentDescriptorArray
impl ResourceStatePassSampleBufferAttachmentDescriptorArray
Sourcepub fn object(
&self,
index: UInteger,
) -> Option<ResourceStatePassSampleBufferAttachmentDescriptor>
pub fn object( &self, index: UInteger, ) -> Option<ResourceStatePassSampleBufferAttachmentDescriptor>
Get the descriptor at the specified index.
C++ equivalent: ResourceStatePassSampleBufferAttachmentDescriptor* object(NS::UInteger)
Sourcepub fn set_object(
&self,
descriptor: Option<&ResourceStatePassSampleBufferAttachmentDescriptor>,
index: UInteger,
)
pub fn set_object( &self, descriptor: Option<&ResourceStatePassSampleBufferAttachmentDescriptor>, index: UInteger, )
Set the descriptor at the specified index.
C++ equivalent: void setObject(const ResourceStatePassSampleBufferAttachmentDescriptor*, NS::UInteger)
Trait Implementations§
Source§impl Referencing for ResourceStatePassSampleBufferAttachmentDescriptorArray
impl Referencing for ResourceStatePassSampleBufferAttachmentDescriptorArray
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 ResourceStatePassSampleBufferAttachmentDescriptorArray
impl Sync for ResourceStatePassSampleBufferAttachmentDescriptorArray
Auto Trait Implementations§
impl Freeze for ResourceStatePassSampleBufferAttachmentDescriptorArray
impl RefUnwindSafe for ResourceStatePassSampleBufferAttachmentDescriptorArray
impl Unpin for ResourceStatePassSampleBufferAttachmentDescriptorArray
impl UnwindSafe for ResourceStatePassSampleBufferAttachmentDescriptorArray
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