pub struct MemoryProperties(/* private fields */);
Expand description
Device memory properties
Implementations§
Source§impl MemoryProperties
impl MemoryProperties
pub fn types(&self) -> &[MemoryType] ⓘ
pub fn heaps(&self) -> &[MemoryHeap] ⓘ
pub fn find_type_index( &self, mask: MemoryPropertyFlags, exclude: MemoryPropertyFlags, index_mask: u32, ) -> Option<u32>
pub fn find_device_local_index(&self, index_mask: u32) -> Option<u32>
pub fn find_lazily_allocated_device_local_index( &self, index_mask: u32, ) -> Option<u32>
pub fn find_host_visible_index(&self, index_mask: u32) -> Option<u32>
pub fn is_coherent(&self, index: u32) -> bool
pub fn is_cached(&self, index: u32) -> bool
Auto Trait Implementations§
impl Freeze for MemoryProperties
impl RefUnwindSafe for MemoryProperties
impl Send for MemoryProperties
impl Sync for MemoryProperties
impl Unpin for MemoryProperties
impl UnwindSafe for MemoryProperties
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