pub(super) struct MemoryAllocators {
general: Mutex<Allocator>,
transient: Mutex<Allocator>,
}Available on
vulkan only.Fields§
§general: Mutex<Allocator>§transient: Mutex<Allocator>Implementations§
Source§impl MemoryAllocators
impl MemoryAllocators
pub(super) fn new( instance: Instance, device: Device, physical_device: PhysicalDevice, buffer_device_address: bool, allocation_sizes: AllocationSizes, ) -> Result<Self, AllocationError>
fn allocator(&self, pool: MemoryPool) -> &Mutex<Allocator>
pub(super) fn allocate( &self, pool: MemoryPool, desc: &AllocationCreateDesc<'_>, ) -> Result<MemoryAllocation, AllocationError>
pub(super) fn free( &self, allocation: MemoryAllocation, ) -> Result<(), AllocationError>
pub(super) fn generate_report(&self) -> AllocatorReport
Auto Trait Implementations§
impl !Freeze for MemoryAllocators
impl !RefUnwindSafe for MemoryAllocators
impl Send for MemoryAllocators
impl Sync for MemoryAllocators
impl Unpin for MemoryAllocators
impl UnsafeUnpin for MemoryAllocators
impl !UnwindSafe for MemoryAllocators
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more