pub struct DeviceBuffer {
pub ptr: *mut c_void,
pub size: usize,
/* private fields */
}Expand description
Device or shared allocation from zeMemAllocDevice or zeMemAllocShared, freed with zeMemFree on drop.
Fields§
§ptr: *mut c_voidBase pointer of the allocation.
size: usizeAllocation size in bytes.
Trait Implementations§
Source§impl Drop for DeviceBuffer
impl Drop for DeviceBuffer
Auto Trait Implementations§
impl !Send for DeviceBuffer
impl !Sync for DeviceBuffer
impl Freeze for DeviceBuffer
impl RefUnwindSafe for DeviceBuffer
impl Unpin for DeviceBuffer
impl UnsafeUnpin for DeviceBuffer
impl UnwindSafe for DeviceBuffer
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