pub struct ArrayDescriptor { /* private fields */ }
Expand description
Describes a CUDA Array
Implementations
sourceimpl ArrayDescriptor
impl ArrayDescriptor
sourcepub fn from_raw(desc: CUDA_ARRAY3D_DESCRIPTOR) -> Self
pub fn from_raw(desc: CUDA_ARRAY3D_DESCRIPTOR) -> Self
Constructs an ArrayDescriptor from a CUDA Driver API Array Descriptor.
sourcepub fn new(
dims: [usize; 3],
format: ArrayFormat,
num_channels: c_uint,
flags: ArrayObjectFlags
) -> Self
pub fn new(
dims: [usize; 3],
format: ArrayFormat,
num_channels: c_uint,
flags: ArrayObjectFlags
) -> Self
Constructs an ArrayDescriptor from dimensions, format, num_channels, and flags.
sourcepub fn from_dims_format(dims: [usize; 3], format: ArrayFormat) -> Self
pub fn from_dims_format(dims: [usize; 3], format: ArrayFormat) -> Self
Creates a new ArrayDescriptor from a set of dimensions and format.
sourcepub fn set_height(&mut self, height: usize)
pub fn set_height(&mut self, height: usize)
Sets the height of the ArrayDescriptor
sourcepub fn format(&self) -> ArrayFormat
pub fn format(&self) -> ArrayFormat
Returns the format of the ArrayDescripor
sourcepub fn set_format(&mut self, format: ArrayFormat)
pub fn set_format(&mut self, format: ArrayFormat)
Sets the format of the ArrayDescriptor
sourcepub fn num_channels(&self) -> c_uint
pub fn num_channels(&self) -> c_uint
Returns the number of channels in the ArrayDescriptor
sourcepub fn set_num_channels(&mut self, num_channels: c_uint)
pub fn set_num_channels(&mut self, num_channels: c_uint)
Sets the number of channels in the ArrayDescriptor
sourcepub fn flags(&self) -> ArrayObjectFlags
pub fn flags(&self) -> ArrayObjectFlags
Returns the flags of the ArrayDescriptor
sourcepub fn set_flags(&mut self, flags: ArrayObjectFlags)
pub fn set_flags(&mut self, flags: ArrayObjectFlags)
Sets the flags of the ArrayDescriptor.
Trait Implementations
sourceimpl Clone for ArrayDescriptor
impl Clone for ArrayDescriptor
sourcefn clone(&self) -> ArrayDescriptor
fn clone(&self) -> ArrayDescriptor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ArrayDescriptor
impl Debug for ArrayDescriptor
impl Copy for ArrayDescriptor
Auto Trait Implementations
impl RefUnwindSafe for ArrayDescriptor
impl Send for ArrayDescriptor
impl Sync for ArrayDescriptor
impl Unpin for ArrayDescriptor
impl UnwindSafe for ArrayDescriptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more