pub enum GpuBuddyAllocMode {
Simple,
Range(Range<u64>),
TopDown,
}Expand description
Allocation mode for the GPU buddy allocator.
The mode determines the primary allocation strategy. Modes are mutually exclusive: an allocation is either simple, range-constrained, or top-down.
Orthogonal modifier flags (e.g., contiguous, clear) are specified separately
via GpuBuddyAllocFlags.
Variants§
Simple
Simple allocation without constraints.
Range(Range<u64>)
Range-based allocation within the given address range.
TopDown
Allocate from top of address space downward.
Trait Implementations§
Source§impl Clone for GpuBuddyAllocMode
impl Clone for GpuBuddyAllocMode
Source§fn clone(&self) -> GpuBuddyAllocMode
fn clone(&self) -> GpuBuddyAllocMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuBuddyAllocMode
impl Debug for GpuBuddyAllocMode
Source§impl PartialEq for GpuBuddyAllocMode
impl PartialEq for GpuBuddyAllocMode
impl Eq for GpuBuddyAllocMode
impl StructuralPartialEq for GpuBuddyAllocMode
Auto Trait Implementations§
impl Freeze for GpuBuddyAllocMode
impl RefUnwindSafe for GpuBuddyAllocMode
impl Send for GpuBuddyAllocMode
impl Sync for GpuBuddyAllocMode
impl Unpin for GpuBuddyAllocMode
impl UnsafeUnpin for GpuBuddyAllocMode
impl UnwindSafe for GpuBuddyAllocMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more