pub struct ArrayDescriptor { /* private fields */ }
Expand description
Describes a CUDA Array
Implementations§
Source§impl 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§
Source§impl Clone for ArrayDescriptor
impl Clone for ArrayDescriptor
Source§fn clone(&self) -> ArrayDescriptor
fn clone(&self) -> ArrayDescriptor
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 ArrayDescriptor
impl Debug for ArrayDescriptor
impl Copy for ArrayDescriptor
Auto Trait Implementations§
impl Freeze for ArrayDescriptor
impl RefUnwindSafe for ArrayDescriptor
impl Send for ArrayDescriptor
impl Sync for ArrayDescriptor
impl Unpin for ArrayDescriptor
impl UnwindSafe for ArrayDescriptor
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