#[repr(C)]pub struct CudaResourceDescPitch2d {
pub dev_ptr: CUdeviceptr,
pub format: CUarray_format,
pub num_channels: u32,
pub width_in_elements: usize,
pub height: usize,
pub pitch_in_bytes: usize,
}Expand description
Inner data for a Pitch2D (2-D pitched linear memory) resource.
Fields§
§dev_ptr: CUdeviceptrDevice pointer to the pitched region (first row).
format: CUarray_formatChannel element format.
num_channels: u32Number of channels.
width_in_elements: usizeWidth of the array in elements.
height: usizeHeight of the array in elements.
pitch_in_bytes: usizeRow pitch in bytes (stride between rows).
Trait Implementations§
Source§impl Clone for CudaResourceDescPitch2d
impl Clone for CudaResourceDescPitch2d
Source§fn clone(&self) -> CudaResourceDescPitch2d
fn clone(&self) -> CudaResourceDescPitch2d
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 moreimpl Copy for CudaResourceDescPitch2d
Auto Trait Implementations§
impl Freeze for CudaResourceDescPitch2d
impl RefUnwindSafe for CudaResourceDescPitch2d
impl Send for CudaResourceDescPitch2d
impl Sync for CudaResourceDescPitch2d
impl Unpin for CudaResourceDescPitch2d
impl UnsafeUnpin for CudaResourceDescPitch2d
impl UnwindSafe for CudaResourceDescPitch2d
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