pub struct RawPitchedDeviceMemory<T> {
pub ptr: *mut T,
pub width: usize,
pub height: usize,
pub pitch: usize,
pub context: Arc<Context>,
}Expand description
Raw ownership of a pitched two-dimensional allocation and its context.
Free ptr while context is alive, or re-adopt the value with PitchedDeviceMemory::from_raw.
Fields§
§ptr: *mut TBase of the allocation, or null for an empty shape.
width: usizeRow width in elements.
height: usizeNumber of rows.
pitch: usizeByte stride between rows.
context: Arc<Context>Context the allocation belongs to.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for RawPitchedDeviceMemory<T>
impl<T> !Send for RawPitchedDeviceMemory<T>
impl<T> !Sync for RawPitchedDeviceMemory<T>
impl<T> !UnwindSafe for RawPitchedDeviceMemory<T>
impl<T> Forget for RawPitchedDeviceMemory<T>
impl<T> Freeze for RawPitchedDeviceMemory<T>
impl<T> Move for RawPitchedDeviceMemory<T>
impl<T> Unpin for RawPitchedDeviceMemory<T>
impl<T> UnsafeUnpin for RawPitchedDeviceMemory<T>where
*mut T: UnsafeUnpin,
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