pub struct Request {
pub size: u64,
pub align_mask: u64,
pub usage: UsageFlags,
pub memory_types: u32,
}Expand description
Memory request for allocator.
Fields§
§size: u64Minimal size of memory block required.
Returned block may have larger size,
use MemoryBlock::size to learn actual size of returned block.
align_mask: u64Minimal alignment mask required.
Returned block may have larger alignment,
use MemoryBlock::align to learn actual alignment of returned block.
usage: UsageFlagsIntended memory usage.
Returned block may support additional usages,
use MemoryBlock::props to learn memory properties of returned block.
memory_types: u32Bitset for memory types.
Returned block will be from memory type corresponding to one of set bits,
use MemoryBlock::memory_type to learn memory type index of returned block.
Trait Implementations§
impl Copy for Request
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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