#[repr(usize)]pub enum GpuBuddyAllocFlag {
Contiguous = 4,
Clear = 8,
TrimDisable = 32,
}Expand description
Individual modifier flag for GPU buddy allocation.
Variants§
Contiguous = 4
Allocate physically contiguous blocks.
Clear = 8
Request allocation from cleared (zeroed) memory.
TrimDisable = 32
Disable trimming of partially used blocks.
Trait Implementations§
Source§impl BitAnd<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitAnd<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§type Output = GpuBuddyAllocFlags
type Output = GpuBuddyAllocFlags
The resulting type after applying the
& operator.Source§impl BitAnd for GpuBuddyAllocFlag
impl BitAnd for GpuBuddyAllocFlag
Source§impl BitAndAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitAndAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§fn bitand_assign(&mut self, rhs: GpuBuddyAllocFlag)
fn bitand_assign(&mut self, rhs: GpuBuddyAllocFlag)
Performs the
&= operation. Read moreSource§impl BitOr<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitOr<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§type Output = GpuBuddyAllocFlags
type Output = GpuBuddyAllocFlags
The resulting type after applying the
| operator.Source§impl BitOr for GpuBuddyAllocFlag
impl BitOr for GpuBuddyAllocFlag
Source§impl BitOrAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitOrAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§fn bitor_assign(&mut self, rhs: GpuBuddyAllocFlag)
fn bitor_assign(&mut self, rhs: GpuBuddyAllocFlag)
Performs the
|= operation. Read moreSource§impl BitXor<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitXor<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§type Output = GpuBuddyAllocFlags
type Output = GpuBuddyAllocFlags
The resulting type after applying the
^ operator.Source§impl BitXor for GpuBuddyAllocFlag
impl BitXor for GpuBuddyAllocFlag
Source§impl BitXorAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitXorAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§fn bitxor_assign(&mut self, rhs: GpuBuddyAllocFlag)
fn bitxor_assign(&mut self, rhs: GpuBuddyAllocFlag)
Performs the
^= operation. Read moreSource§impl Clone for GpuBuddyAllocFlag
impl Clone for GpuBuddyAllocFlag
Source§fn clone(&self) -> GpuBuddyAllocFlag
fn clone(&self) -> GpuBuddyAllocFlag
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 From<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl From<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§fn from(value: GpuBuddyAllocFlag) -> Self
fn from(value: GpuBuddyAllocFlag) -> Self
Converts to this type from the input type.
Source§impl Not for GpuBuddyAllocFlag
impl Not for GpuBuddyAllocFlag
Source§impl PartialEq for GpuBuddyAllocFlag
impl PartialEq for GpuBuddyAllocFlag
impl Copy for GpuBuddyAllocFlag
impl Eq for GpuBuddyAllocFlag
impl StructuralPartialEq for GpuBuddyAllocFlag
Auto Trait Implementations§
impl Freeze for GpuBuddyAllocFlag
impl RefUnwindSafe for GpuBuddyAllocFlag
impl Send for GpuBuddyAllocFlag
impl Sync for GpuBuddyAllocFlag
impl Unpin for GpuBuddyAllocFlag
impl UnsafeUnpin for GpuBuddyAllocFlag
impl UnwindSafe for GpuBuddyAllocFlag
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