[][src]Struct rustacuda::memory::array::ArrayDescriptor

pub struct ArrayDescriptor { /* fields omitted */ }

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.