pub struct Pool { /* private fields */ }Implementations§
Source§impl Pool
impl Pool
pub fn name(&self) -> Option<&CStr>
pub fn set_name(&self, name: Option<&CStr>)
pub fn get_statistics(&self) -> VkResult<VmaStatistics>
pub fn calculate_statistics(&self) -> VkResult<VmaDetailedStatistics>
pub fn check_corruption(&self) -> VkResult<()>
Trait Implementations§
Source§impl Alloc for Pool
impl Alloc for Pool
fn allocator(&self) -> &Allocator
fn pool(&self) -> PoolHandle
unsafe fn find_memory_type_index( &self, memory_type_bits: u32, options: &AllocationOptions, ) -> VkResult<u32>
unsafe fn find_memory_type_index_for_buffer_info( &self, buffer_info: impl Cast<Target = BufferCreateInfo>, options: &AllocationOptions, ) -> VkResult<u32>
unsafe fn find_memory_type_index_for_image_info( &self, image_info: impl Cast<Target = ImageCreateInfo>, options: &AllocationOptions, ) -> VkResult<u32>
unsafe fn allocate_memory( &self, requirements: impl Cast<Target = MemoryRequirements>, options: &AllocationOptions, ) -> VkResult<Allocation>
unsafe fn allocate_memory_pages( &self, requirements: impl Cast<Target = MemoryRequirements>, options: &AllocationOptions, num_pages: usize, ) -> VkResult<Vec<Allocation>>
unsafe fn allocate_memory_for_buffer( &self, buffer: Buffer, options: &AllocationOptions, ) -> VkResult<Allocation>
unsafe fn allocate_memory_for_image( &self, image: Image, options: &AllocationOptions, ) -> VkResult<Allocation>
unsafe fn create_buffer( &self, buffer_info: impl Cast<Target = BufferCreateInfo>, options: &AllocationOptions, ) -> VkResult<(Buffer, Allocation)>
unsafe fn create_buffer_with_alignment( &self, buffer_info: impl Cast<Target = BufferCreateInfo>, options: &AllocationOptions, min_alignment: DeviceSize, ) -> VkResult<(Buffer, Allocation)>
unsafe fn create_image( &self, image_info: impl Cast<Target = ImageCreateInfo>, options: &AllocationOptions, ) -> VkResult<(Image, Allocation)>
Auto Trait Implementations§
impl Freeze for Pool
impl RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl UnsafeUnpin for Pool
impl UnwindSafe for Pool
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