pub struct GpuBuddyParams {
pub base_offset: u64,
pub size: u64,
pub chunk_size: Alignment,
}Expand description
Parameters for creating a GPU buddy allocator.
Fields§
§base_offset: u64Base offset (in bytes) where the managed memory region starts. Allocations will be offset by this value.
size: u64Total size (in bytes) of the address space managed by the allocator.
chunk_size: AlignmentMinimum allocation unit / chunk size; must be >= 4KB.
Auto Trait Implementations§
impl Freeze for GpuBuddyParams
impl RefUnwindSafe for GpuBuddyParams
impl Send for GpuBuddyParams
impl Sync for GpuBuddyParams
impl Unpin for GpuBuddyParams
impl UnwindSafe for GpuBuddyParams
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<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
Source§fn into_safe_cast(self) -> T
fn into_safe_cast(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.Source§impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
Source§fn into_safe_cast_arch(self) -> T
fn into_safe_cast_arch(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.