#[repr(C)]pub struct CudaResourceDescLinear {
pub dev_ptr: CUdeviceptr,
pub format: CUarray_format,
pub num_channels: u32,
pub size_in_bytes: usize,
}Expand description
Inner data for a Linear (1-D linear memory) resource.
Fields§
§dev_ptr: CUdeviceptrDevice pointer to the linear region.
format: CUarray_formatChannel element format.
num_channels: u32Number of channels.
size_in_bytes: usizeTotal size in bytes.
Trait Implementations§
Source§impl Clone for CudaResourceDescLinear
impl Clone for CudaResourceDescLinear
Source§fn clone(&self) -> CudaResourceDescLinear
fn clone(&self) -> CudaResourceDescLinear
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 CudaResourceDescLinear
Auto Trait Implementations§
impl Freeze for CudaResourceDescLinear
impl RefUnwindSafe for CudaResourceDescLinear
impl Send for CudaResourceDescLinear
impl Sync for CudaResourceDescLinear
impl Unpin for CudaResourceDescLinear
impl UnsafeUnpin for CudaResourceDescLinear
impl UnwindSafe for CudaResourceDescLinear
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