pub struct AccelerationStructurePassDescriptor(/* private fields */);Implementations§
Source§impl AccelerationStructurePassDescriptor
impl AccelerationStructurePassDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new acceleration structure pass descriptor.
C++ equivalent: static AccelerationStructurePassDescriptor* alloc()->init()
Sourcepub fn descriptor() -> Option<Self>
pub fn descriptor() -> Option<Self>
Create a new acceleration structure pass descriptor using the class method.
C++ equivalent: static AccelerationStructurePassDescriptor* accelerationStructurePassDescriptor()
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 acceleration structure pass descriptor.
Sourcepub fn sample_buffer_attachments(
&self,
) -> Option<AccelerationStructurePassSampleBufferAttachmentDescriptorArray>
pub fn sample_buffer_attachments( &self, ) -> Option<AccelerationStructurePassSampleBufferAttachmentDescriptorArray>
Get the sample buffer attachments array.
C++ equivalent: AccelerationStructurePassSampleBufferAttachmentDescriptorArray* sampleBufferAttachments() const
Trait Implementations§
Source§impl Referencing for AccelerationStructurePassDescriptor
impl Referencing for AccelerationStructurePassDescriptor
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 AccelerationStructurePassDescriptor
impl Sync for AccelerationStructurePassDescriptor
Auto Trait Implementations§
impl Freeze for AccelerationStructurePassDescriptor
impl RefUnwindSafe for AccelerationStructurePassDescriptor
impl Unpin for AccelerationStructurePassDescriptor
impl UnwindSafe for AccelerationStructurePassDescriptor
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