Struct CUDA_MEMCPY3D_PEER_st

Source
#[repr(C)]
pub struct CUDA_MEMCPY3D_PEER_st {
Show 25 fields pub srcXInBytes: usize, pub srcY: usize, pub srcZ: usize, pub srcLOD: usize, pub srcMemoryType: CUmemorytype, pub srcHost: *const c_void, pub srcDevice: CUdeviceptr, pub srcArray: CUarray, pub srcContext: CUcontext, pub srcPitch: usize, pub srcHeight: usize, pub dstXInBytes: usize, pub dstY: usize, pub dstZ: usize, pub dstLOD: usize, pub dstMemoryType: CUmemorytype, pub dstHost: *mut c_void, pub dstDevice: CUdeviceptr, pub dstArray: CUarray, pub dstContext: CUcontext, pub dstPitch: usize, pub dstHeight: usize, pub WidthInBytes: usize, pub Height: usize, pub Depth: usize,
}
Expand description

3D memory cross-context copy parameters

Fields§

§srcXInBytes: usize

< Source X in bytes

§srcY: usize

< Source Y

§srcZ: usize

< Source Z

§srcLOD: usize

< Source LOD

§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

§srcContext: CUcontext

< Source context (ignored with srcMemoryType is ::CU_MEMORYTYPE_ARRAY)

§srcPitch: usize

< Source pitch (ignored when src is array)

§srcHeight: usize

< Source height (ignored when src is array; may be 0 if Depth==1)

§dstXInBytes: usize

< Destination X in bytes

§dstY: usize

< Destination Y

§dstZ: usize

< Destination Z

§dstLOD: usize

< Destination LOD

§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

§dstContext: CUcontext

< Destination context (ignored with dstMemoryType is ::CU_MEMORYTYPE_ARRAY)

§dstPitch: usize

< Destination pitch (ignored when dst is array)

§dstHeight: usize

< Destination height (ignored when dst is array; may be 0 if Depth==1)

§WidthInBytes: usize

< Width of 3D memory copy in bytes

§Height: usize

< Height of 3D memory copy

§Depth: usize

< Depth of 3D memory copy

Trait Implementations§

Source§

impl Clone for CUDA_MEMCPY3D_PEER_st

Source§

fn clone(&self) -> CUDA_MEMCPY3D_PEER_st

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CUDA_MEMCPY3D_PEER_st

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for CUDA_MEMCPY3D_PEER_st

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.