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 UnsafeUnpin 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<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