pub struct VulkanSuballocator { /* private fields */ }Implementations§
Source§impl VulkanSuballocator
impl VulkanSuballocator
pub fn new() -> Self
pub fn allocate( &mut self, device: &Device, size: u64, alignment: u64, memory_type_index: u32, is_host_visible: bool, is_coherent: bool, allocation_type: AllocationType, ) -> Result<AllocationResult, HalError>
pub fn free(&mut self, block_id: usize, offset: u64, size: u64)
pub fn destroy(&mut self, device: &Device)
Auto Trait Implementations§
impl Freeze for VulkanSuballocator
impl RefUnwindSafe for VulkanSuballocator
impl Send for VulkanSuballocator
impl Sync for VulkanSuballocator
impl Unpin for VulkanSuballocator
impl UnsafeUnpin for VulkanSuballocator
impl UnwindSafe for VulkanSuballocator
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