pub struct PhysicalAllocation { /* private fields */ }Expand description
A physical memory allocation on a specific GPU device.
Physical allocations represent actual GPU VRAM that can be mapped into virtual address ranges. Multiple virtual ranges can map to the same physical allocation (aliasing).
§Note
On systems without CUDA virtual memory support, the handle is
set to 0 and the allocation is not backed by real memory.
Implementations§
Trait Implementations§
Source§impl Clone for PhysicalAllocation
impl Clone for PhysicalAllocation
Source§fn clone(&self) -> PhysicalAllocation
fn clone(&self) -> PhysicalAllocation
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 PhysicalAllocation
impl Debug for PhysicalAllocation
Source§impl Display for PhysicalAllocation
impl Display for PhysicalAllocation
Source§impl PartialEq for PhysicalAllocation
impl PartialEq for PhysicalAllocation
impl Eq for PhysicalAllocation
impl StructuralPartialEq for PhysicalAllocation
Auto Trait Implementations§
impl Freeze for PhysicalAllocation
impl RefUnwindSafe for PhysicalAllocation
impl Send for PhysicalAllocation
impl Sync for PhysicalAllocation
impl Unpin for PhysicalAllocation
impl UnsafeUnpin for PhysicalAllocation
impl UnwindSafe for PhysicalAllocation
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