#[repr(C)]pub struct CUDA_MEMCPY2D_st {Show 16 fields
pub srcXInBytes: usize,
pub srcY: usize,
pub srcMemoryType: CUmemorytype,
pub srcHost: *const c_void,
pub srcDevice: CUdeviceptr,
pub srcArray: CUarray,
pub srcPitch: usize,
pub dstXInBytes: usize,
pub dstY: usize,
pub dstMemoryType: CUmemorytype,
pub dstHost: *mut c_void,
pub dstDevice: CUdeviceptr,
pub dstArray: CUarray,
pub dstPitch: usize,
pub WidthInBytes: usize,
pub Height: usize,
}
Expand description
2D memory copy parameters
Fields§
§srcXInBytes: usize
< Source X in bytes
srcY: usize
< Source Y
srcMemoryType: CUmemorytype
< Source memory type (host, device, array)
srcHost: *const c_void
< Source host pointer
srcDevice: CUdeviceptr
< Source device pointer
srcArray: CUarray
< Source array reference
srcPitch: usize
< Source pitch (ignored when src is array)
dstXInBytes: usize
< Destination X in bytes
dstY: usize
< Destination Y
dstMemoryType: CUmemorytype
< Destination memory type (host, device, array)
dstHost: *mut c_void
< Destination host pointer
dstDevice: CUdeviceptr
< Destination device pointer
dstArray: CUarray
< Destination array reference
dstPitch: usize
< Destination pitch (ignored when dst is array)
WidthInBytes: usize
< Width of 2D memory copy in bytes
Height: usize
< Height of 2D memory copy
Trait Implementations§
Source§impl Clone for CUDA_MEMCPY2D_st
impl Clone for CUDA_MEMCPY2D_st
Source§fn clone(&self) -> CUDA_MEMCPY2D_st
fn clone(&self) -> CUDA_MEMCPY2D_st
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 CUDA_MEMCPY2D_st
impl Debug for CUDA_MEMCPY2D_st
impl Copy for CUDA_MEMCPY2D_st
Auto Trait Implementations§
impl Freeze for CUDA_MEMCPY2D_st
impl RefUnwindSafe for CUDA_MEMCPY2D_st
impl !Send for CUDA_MEMCPY2D_st
impl !Sync for CUDA_MEMCPY2D_st
impl Unpin for CUDA_MEMCPY2D_st
impl UnwindSafe for CUDA_MEMCPY2D_st
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