pub struct AccelerationStructurePassSampleBufferAttachmentDescriptorArray(/* private fields */);Expand description
Array of sample buffer attachment descriptors for an acceleration structure pass.
C++ equivalent: MTL::AccelerationStructurePassSampleBufferAttachmentDescriptorArray
Implementations§
Source§impl AccelerationStructurePassSampleBufferAttachmentDescriptorArray
impl AccelerationStructurePassSampleBufferAttachmentDescriptorArray
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new sample buffer attachment descriptor array.
C++ equivalent: static AccelerationStructurePassSampleBufferAttachmentDescriptorArray* alloc()->init()
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create from a raw pointer.
§Safety
The pointer must be a valid Metal sample buffer attachment descriptor array.
Sourcepub fn object(
&self,
index: UInteger,
) -> Option<AccelerationStructurePassSampleBufferAttachmentDescriptor>
pub fn object( &self, index: UInteger, ) -> Option<AccelerationStructurePassSampleBufferAttachmentDescriptor>
Get the attachment at the specified index.
C++ equivalent: AccelerationStructurePassSampleBufferAttachmentDescriptor* object(NS::UInteger)
Sourcepub fn set_object(
&self,
attachment: Option<&AccelerationStructurePassSampleBufferAttachmentDescriptor>,
index: UInteger,
)
pub fn set_object( &self, attachment: Option<&AccelerationStructurePassSampleBufferAttachmentDescriptor>, index: UInteger, )
Set the attachment at the specified index.
C++ equivalent: void setObject(AccelerationStructurePassSampleBufferAttachmentDescriptor*, NS::UInteger)
Trait Implementations§
Source§impl Referencing for AccelerationStructurePassSampleBufferAttachmentDescriptorArray
impl Referencing for AccelerationStructurePassSampleBufferAttachmentDescriptorArray
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 AccelerationStructurePassSampleBufferAttachmentDescriptorArray
impl Sync for AccelerationStructurePassSampleBufferAttachmentDescriptorArray
Auto Trait Implementations§
impl Freeze for AccelerationStructurePassSampleBufferAttachmentDescriptorArray
impl RefUnwindSafe for AccelerationStructurePassSampleBufferAttachmentDescriptorArray
impl Unpin for AccelerationStructurePassSampleBufferAttachmentDescriptorArray
impl UnwindSafe for AccelerationStructurePassSampleBufferAttachmentDescriptorArray
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