Struct vk_alloc::Allocator[][src]

pub struct Allocator<LT: Lifetime> { /* fields omitted */ }
Expand description

The general purpose memory allocator. Implemented as a segregated list allocator.

Implementations

Creates a new allocator.

Allocates memory for a buffer.

Allocates memory for an image. is_optimal must be set true if the image is a optimal image (a regular texture).

Allocates memory on the allocator.

Frees the allocation.

Releases all memory blocks back to the system. Should be called before drop.

Number of allocations.

Number of unused ranges between allocations.

Number of bytes used by the allocations.

Number of bytes used by the unused ranges between allocations.

Number of allocated Vulkan memory blocks.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.