Struct gpu_alloc::Request [−][src]
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: u64
Minimal size of memory block required.
Returned block may have larger size,
use MemoryBlock::size
to learn actual size of returned block.
align_mask: u64
Minimal alignment mask required.
Returned block may have larger alignment,
use MemoryBlock::align
to learn actual alignment of returned block.
usage: UsageFlags
Intended memory usage.
Returned block may support additional usages,
use MemoryBlock::props
to learn memory properties of returned block.
memory_types: u32
Bitset 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
[src]
impl Eq for Request
[src]
impl StructuralEq for Request
[src]
impl StructuralPartialEq for Request
[src]
Auto Trait Implementations
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more