pub struct AccelerationStructureRef(/* private fields */);
Expand description
A borrowed reference to a AccelerationStructure
.
Implementations§
Source§impl AccelerationStructureRef
impl AccelerationStructureRef
pub fn gpu_resource_id(&self) -> MTLResourceID
Methods from Deref<Target = ResourceRef>§
pub fn device(&self) -> &DeviceRef
pub fn label(&self) -> &str
pub fn set_label(&self, label: &str)
pub fn cpu_cache_mode(&self) -> MTLCPUCacheMode
pub fn storage_mode(&self) -> MTLStorageMode
pub fn set_purgeable_state(&self, state: MTLPurgeableState) -> MTLPurgeableState
Sourcepub fn allocated_size(&self) -> NSUInteger
pub fn allocated_size(&self) -> NSUInteger
Only available on macOS 10.13+ & iOS 10.11+
Sourcepub fn hazard_tracking_mode(&self) -> MTLHazardTrackingMode
pub fn hazard_tracking_mode(&self) -> MTLHazardTrackingMode
Only available on macos(10.15), ios(13.0)
Sourcepub fn resource_options(&self) -> MTLResourceOptions
pub fn resource_options(&self) -> MTLResourceOptions
Only available on macos(10.15), ios(13.0)
Sourcepub fn heap_offset(&self) -> NSUInteger
pub fn heap_offset(&self) -> NSUInteger
Only available on macos(10.15), ios(13.0)
Sourcepub fn make_aliasable(&self)
pub fn make_aliasable(&self)
Only available on macos(10.13), ios(10.0)
Sourcepub fn is_aliasable(&self) -> bool
pub fn is_aliasable(&self) -> bool
Only available on macos(10.13), ios(10.0)
Methods from Deref<Target = NsObjectRef>§
pub fn conforms_to_protocol<T>(&self) -> Result<bool, String>
Trait Implementations§
Source§impl AsMut<AccelerationStructureRef> for AccelerationStructure
impl AsMut<AccelerationStructureRef> for AccelerationStructure
Source§fn as_mut(&mut self) -> &mut AccelerationStructureRef
fn as_mut(&mut self) -> &mut AccelerationStructureRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<AccelerationStructureRef> for AccelerationStructure
impl AsRef<AccelerationStructureRef> for AccelerationStructure
Source§fn as_ref(&self) -> &AccelerationStructureRef
fn as_ref(&self) -> &AccelerationStructureRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<AccelerationStructureRef> for AccelerationStructure
impl Borrow<AccelerationStructureRef> for AccelerationStructure
Source§fn borrow(&self) -> &AccelerationStructureRef
fn borrow(&self) -> &AccelerationStructureRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<AccelerationStructureRef> for AccelerationStructure
impl BorrowMut<AccelerationStructureRef> for AccelerationStructure
Source§fn borrow_mut(&mut self) -> &mut AccelerationStructureRef
fn borrow_mut(&mut self) -> &mut AccelerationStructureRef
Mutably borrows from an owned value. Read more
Source§impl Debug for AccelerationStructureRef
impl Debug for AccelerationStructureRef
Source§impl Deref for AccelerationStructureRef
impl Deref for AccelerationStructureRef
Source§impl ForeignTypeRef for AccelerationStructureRef
impl ForeignTypeRef for AccelerationStructureRef
Source§type CType = MTLAccelerationStructure
type CType = MTLAccelerationStructure
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
Source§impl Message for AccelerationStructureRef
impl Message for AccelerationStructureRef
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more
Source§impl ToOwned for AccelerationStructureRef
impl ToOwned for AccelerationStructureRef
Source§type Owned = AccelerationStructure
type Owned = AccelerationStructure
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> AccelerationStructure
fn to_owned(&self) -> AccelerationStructure
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Send for AccelerationStructureRef
impl Sync for AccelerationStructureRef
Auto Trait Implementations§
impl Freeze for AccelerationStructureRef
impl !RefUnwindSafe for AccelerationStructureRef
impl Unpin for AccelerationStructureRef
impl UnwindSafe for AccelerationStructureRef
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