[−][src]Struct rustacuda::memory::array::ArrayDescriptor
Describes a CUDA Array
Implementations
impl ArrayDescriptor
[src]
pub fn from_raw(desc: CUDA_ARRAY3D_DESCRIPTOR) -> Self
[src]
Constructs an ArrayDescriptor from a CUDA Driver API Array Descriptor.
pub fn new(
dims: [usize; 3],
format: ArrayFormat,
num_channels: c_uint,
flags: ArrayObjectFlags
) -> Self
[src]
dims: [usize; 3],
format: ArrayFormat,
num_channels: c_uint,
flags: ArrayObjectFlags
) -> Self
Constructs an ArrayDescriptor from dimensions, format, num_channels, and flags.
pub fn from_dims_format(dims: [usize; 3], format: ArrayFormat) -> Self
[src]
Creates a new ArrayDescriptor from a set of dimensions and format.
pub fn dims(&self) -> [usize; 3]
[src]
Returns the dimensions of the ArrayDescriptor
pub fn set_dims(&mut self, dims: [usize; 3])
[src]
Sets the dimensions of the ArrayDescriptor
pub fn width(&self) -> usize
[src]
Returns the width of the ArrayDescripor
pub fn set_width(&mut self, width: usize)
[src]
Sets the width of the ArrayDescriptor
pub fn height(&self) -> usize
[src]
Returns the height of the ArrayDescripor
pub fn set_height(&mut self, height: usize)
[src]
Sets the height of the ArrayDescriptor
pub fn depth(&self) -> usize
[src]
Returns the depth of the ArrayDescripor
pub fn set_depth(&mut self, depth: usize)
[src]
Sets the depth of the ArrayDescriptor
pub fn format(&self) -> ArrayFormat
[src]
Returns the format of the ArrayDescripor
pub fn set_format(&mut self, format: ArrayFormat)
[src]
Sets the format of the ArrayDescriptor
pub fn num_channels(&self) -> c_uint
[src]
Returns the number of channels in the ArrayDescriptor
pub fn set_num_channels(&mut self, num_channels: c_uint)
[src]
Sets the number of channels in the ArrayDescriptor
pub fn flags(&self) -> ArrayObjectFlags
[src]
Returns the flags of the ArrayDescriptor
pub fn set_flags(&mut self, flags: ArrayObjectFlags)
[src]
Sets the flags of the ArrayDescriptor.
Trait Implementations
impl Clone for ArrayDescriptor
[src]
fn clone(&self) -> ArrayDescriptor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ArrayDescriptor
[src]
impl Debug for ArrayDescriptor
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,