pub struct MemoryTypeSelector { /* private fields */ }Expand description
Validated device memory properties and non-coherent atom size.
Implementations§
Source§impl MemoryTypeSelector
impl MemoryTypeSelector
pub fn new( properties: PhysicalDeviceMemoryProperties, atom: u64, ) -> Result<Self, AllocError>
Sourcepub fn find_memory_type(
&self,
request: &AllocRequest,
) -> Result<u32, AllocError>
pub fn find_memory_type( &self, request: &AllocRequest, ) -> Result<u32, AllocError>
Select a compatible type; preferred-bit ties retain the lower index.
Donor: VMA VmaAllocator_T::FindMemoryTypeIndex, required-bit test and
missing-preferred-bit cost. Adaptation: checked metadata, no hidden usage policy.
Auto Trait Implementations§
impl Freeze for MemoryTypeSelector
impl RefUnwindSafe for MemoryTypeSelector
impl Send for MemoryTypeSelector
impl Sync for MemoryTypeSelector
impl Unpin for MemoryTypeSelector
impl UnsafeUnpin for MemoryTypeSelector
impl UnwindSafe for MemoryTypeSelector
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