pub struct CudaArray3D { /* private fields */ }Expand description
RAII wrapper for a 3-D (or layered / cubemap) CUDA array.
Implementations§
Source§impl CudaArray3D
impl CudaArray3D
Sourcepub fn create(
width: usize,
height: usize,
depth: usize,
format: ArrayFormat,
num_channels: u32,
flags: Array3DFlags,
) -> CudaRtResult<Self>
pub fn create( width: usize, height: usize, depth: usize, format: ArrayFormat, num_channels: u32, flags: Array3DFlags, ) -> CudaRtResult<Self>
Allocate a 3-D CUDA array.
depth = 0 is valid for 1-D and 2-D arrays allocated via the 3-D API;
for layered arrays it specifies the number of layers.
Mirrors cudaMalloc3DArray.
§Errors
Returns CudaRtError::NotSupported if cuArray3DCreate_v2 is absent.
Sourcepub const fn format(&self) -> ArrayFormat
pub const fn format(&self) -> ArrayFormat
Element format.
Sourcepub const fn num_channels(&self) -> u32
pub const fn num_channels(&self) -> u32
Number of channels.
Sourcepub const fn flags(&self) -> Array3DFlags
pub const fn flags(&self) -> Array3DFlags
Creation flags.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CudaArray3D
impl RefUnwindSafe for CudaArray3D
impl Send for CudaArray3D
impl Sync for CudaArray3D
impl Unpin for CudaArray3D
impl UnsafeUnpin for CudaArray3D
impl UnwindSafe for CudaArray3D
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