pub struct ResourceStatePassDescriptor(/* private fields */);Expand description
A descriptor for a resource state pass.
C++ equivalent: MTL::ResourceStatePassDescriptor
Implementations§
Source§impl ResourceStatePassDescriptor
impl ResourceStatePassDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new resource state pass descriptor.
C++ equivalent: resourceStatePassDescriptor()
Sourcepub fn sample_buffer_attachments(
&self,
) -> Option<ResourceStatePassSampleBufferAttachmentDescriptorArray>
pub fn sample_buffer_attachments( &self, ) -> Option<ResourceStatePassSampleBufferAttachmentDescriptorArray>
Get the sample buffer attachments array.
C++ equivalent: ResourceStatePassSampleBufferAttachmentDescriptorArray* sampleBufferAttachments() const
Trait Implementations§
Source§impl Clone for ResourceStatePassDescriptor
impl Clone for ResourceStatePassDescriptor
Source§impl Debug for ResourceStatePassDescriptor
impl Debug for ResourceStatePassDescriptor
Source§impl Drop for ResourceStatePassDescriptor
impl Drop for ResourceStatePassDescriptor
Source§impl Referencing for ResourceStatePassDescriptor
impl Referencing for ResourceStatePassDescriptor
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 ResourceStatePassDescriptor
impl Sync for ResourceStatePassDescriptor
Auto Trait Implementations§
impl Freeze for ResourceStatePassDescriptor
impl RefUnwindSafe for ResourceStatePassDescriptor
impl Unpin for ResourceStatePassDescriptor
impl UnwindSafe for ResourceStatePassDescriptor
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