pub struct AccelerationStructure(/* private fields */);Implementations§
Source§impl AccelerationStructure
impl AccelerationStructure
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create an AccelerationStructure from a raw pointer.
§Safety
The pointer must be a valid Metal acceleration structure object.
Sourcepub fn size(&self) -> UInteger
pub fn size(&self) -> UInteger
Get the size in bytes of the acceleration structure.
C++ equivalent: NS::UInteger size() const
Sourcepub fn gpu_resource_id(&self) -> u64
pub fn gpu_resource_id(&self) -> u64
Get the GPU resource ID.
C++ equivalent: ResourceID gpuResourceID() const
Trait Implementations§
Source§impl Clone for AccelerationStructure
impl Clone for AccelerationStructure
Source§impl Debug for AccelerationStructure
impl Debug for AccelerationStructure
Source§impl Drop for AccelerationStructure
impl Drop for AccelerationStructure
Source§impl Referencing for AccelerationStructure
impl Referencing for AccelerationStructure
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 AccelerationStructure
impl Sync for AccelerationStructure
Auto Trait Implementations§
impl Freeze for AccelerationStructure
impl RefUnwindSafe for AccelerationStructure
impl Unpin for AccelerationStructure
impl UnwindSafe for AccelerationStructure
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