pub struct MemoryCopy3DNodeParams { /* private fields */ }Implementations§
Source§impl MemoryCopy3DNodeParams
impl MemoryCopy3DNodeParams
Sourcepub const unsafe fn new(
src_array: Option<ArrayHandle>,
src_pos: Position,
src_ptr: PitchedPtr,
dst_array: Option<ArrayHandle>,
dst_pos: Position,
dst_ptr: PitchedPtr,
extent: Extent,
kind: MemoryCopyKind,
) -> Self
pub const unsafe fn new( src_array: Option<ArrayHandle>, src_pos: Position, src_ptr: PitchedPtr, dst_array: Option<ArrayHandle>, dst_pos: Position, dst_ptr: PitchedPtr, extent: Extent, kind: MemoryCopyKind, ) -> Self
Creates three-dimensional memcpy node parameters from raw array and pitched pointer operands.
§Safety
Every array and pointer operand selected by kind must remain
valid for the region described by the positions, pitched pointers,
and extent whenever CUDA evaluates a graph node using this value.
pub const fn src_array(self) -> Option<ArrayHandle>
pub const fn src_pos(self) -> Position
pub const fn src_ptr(self) -> PitchedPtr
pub const fn dst_array(self) -> Option<ArrayHandle>
pub const fn dst_pos(self) -> Position
pub const fn dst_ptr(self) -> PitchedPtr
pub const fn extent(self) -> Extent
pub const fn kind(self) -> MemoryCopyKind
Trait Implementations§
Source§impl Clone for MemoryCopy3DNodeParams
impl Clone for MemoryCopy3DNodeParams
Source§fn clone(&self) -> MemoryCopy3DNodeParams
fn clone(&self) -> MemoryCopy3DNodeParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryCopy3DNodeParams
Source§impl Debug for MemoryCopy3DNodeParams
impl Debug for MemoryCopy3DNodeParams
Source§impl From<&MemoryCopy3DNodeParams> for cudaMemcpy3DParms
impl From<&MemoryCopy3DNodeParams> for cudaMemcpy3DParms
Source§fn from(value: &MemoryCopy3DNodeParams) -> Self
fn from(value: &MemoryCopy3DNodeParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for MemoryCopy3DNodeParams
impl !Sync for MemoryCopy3DNodeParams
impl Freeze for MemoryCopy3DNodeParams
impl RefUnwindSafe for MemoryCopy3DNodeParams
impl Unpin for MemoryCopy3DNodeParams
impl UnsafeUnpin for MemoryCopy3DNodeParams
impl UnwindSafe for MemoryCopy3DNodeParams
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