pub struct HeapDescriptorRef(/* private fields */);
Expand description
A borrowed reference to a HeapDescriptor
.
Implementations§
Source§impl HeapDescriptorRef
impl HeapDescriptorRef
pub fn cpu_cache_mode(&self) -> MTLCPUCacheMode
pub fn set_cpu_cache_mode(&self, mode: MTLCPUCacheMode)
pub fn storage_mode(&self) -> MTLStorageMode
pub fn set_storage_mode(&self, mode: MTLStorageMode)
pub fn size(&self) -> NSUInteger
pub fn set_size(&self, size: NSUInteger)
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 set_hazard_tracking_mode(
&self,
hazard_tracking_mode: MTLHazardTrackingMode,
)
pub fn set_hazard_tracking_mode( &self, hazard_tracking_mode: 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_type(&self) -> MTLHeapType
pub fn heap_type(&self) -> MTLHeapType
Only available on macos(10.15), ios(13.0)
Sourcepub fn set_heap_type(&self, type_: MTLHeapType)
pub fn set_heap_type(&self, type_: MTLHeapType)
Only available on macos(10.15), ios(13.0)
Trait Implementations§
Source§impl AsMut<HeapDescriptorRef> for HeapDescriptor
impl AsMut<HeapDescriptorRef> for HeapDescriptor
Source§fn as_mut(&mut self) -> &mut HeapDescriptorRef
fn as_mut(&mut self) -> &mut HeapDescriptorRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<HeapDescriptorRef> for HeapDescriptor
impl AsRef<HeapDescriptorRef> for HeapDescriptor
Source§fn as_ref(&self) -> &HeapDescriptorRef
fn as_ref(&self) -> &HeapDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<HeapDescriptorRef> for HeapDescriptor
impl Borrow<HeapDescriptorRef> for HeapDescriptor
Source§fn borrow(&self) -> &HeapDescriptorRef
fn borrow(&self) -> &HeapDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<HeapDescriptorRef> for HeapDescriptor
impl BorrowMut<HeapDescriptorRef> for HeapDescriptor
Source§fn borrow_mut(&mut self) -> &mut HeapDescriptorRef
fn borrow_mut(&mut self) -> &mut HeapDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl Debug for HeapDescriptorRef
impl Debug for HeapDescriptorRef
Source§impl ForeignTypeRef for HeapDescriptorRef
impl ForeignTypeRef for HeapDescriptorRef
Source§type CType = MTLHeapDescriptor
type CType = MTLHeapDescriptor
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 HeapDescriptorRef
impl Message for HeapDescriptorRef
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 HeapDescriptorRef
impl ToOwned for HeapDescriptorRef
Source§type Owned = HeapDescriptor
type Owned = HeapDescriptor
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> HeapDescriptor
fn to_owned(&self) -> HeapDescriptor
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 HeapDescriptorRef
impl Sync for HeapDescriptorRef
Auto Trait Implementations§
impl Freeze for HeapDescriptorRef
impl !RefUnwindSafe for HeapDescriptorRef
impl Unpin for HeapDescriptorRef
impl UnwindSafe for HeapDescriptorRef
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