pub struct Pitched3dBuffer<T: DeviceRepr> { /* private fields */ }Expand description
A pitched 3D device allocation (from cudaMalloc3D). Freed on drop.
Implementations§
Source§impl<T: DeviceRepr> Pitched3dBuffer<T>
impl<T: DeviceRepr> Pitched3dBuffer<T>
Sourcepub fn new(width: usize, height: usize, depth: usize) -> Result<Self>
pub fn new(width: usize, height: usize, depth: usize) -> Result<Self>
Allocate a width × height × depth box, with width in elements
of T (the runtime measures in bytes, so we multiply).
pub fn as_pitched_ptr(&self) -> cudaPitchedPtr
pub fn extent(&self) -> cudaExtent
Sourcepub fn pitch_bytes(&self) -> usize
pub fn pitch_bytes(&self) -> usize
Pitch in bytes.
Trait Implementations§
Source§impl<T: DeviceRepr> Debug for Pitched3dBuffer<T>
impl<T: DeviceRepr> Debug for Pitched3dBuffer<T>
Source§impl<T: DeviceRepr> Drop for Pitched3dBuffer<T>
impl<T: DeviceRepr> Drop for Pitched3dBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for Pitched3dBuffer<T>
impl<T> RefUnwindSafe for Pitched3dBuffer<T>where
T: RefUnwindSafe,
impl<T> !Send for Pitched3dBuffer<T>
impl<T> !Sync for Pitched3dBuffer<T>
impl<T> Unpin for Pitched3dBuffer<T>where
T: Unpin,
impl<T> UnsafeUnpin for Pitched3dBuffer<T>
impl<T> UnwindSafe for Pitched3dBuffer<T>where
T: UnwindSafe,
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