pub struct MipmappedArray { /* private fields */ }Expand description
A mipmapped CUDA array.
Implementations§
Source§impl MipmappedArray
impl MipmappedArray
Sourcepub fn new(
desc: &cudaChannelFormatDesc,
extent: cudaExtent,
num_levels: u32,
flags: u32,
) -> Result<Self>
pub fn new( desc: &cudaChannelFormatDesc, extent: cudaExtent, num_levels: u32, flags: u32, ) -> Result<Self>
Allocate a mipmapped array.
Sourcepub fn as_raw(&self) -> cudaMipmappedArray_t
pub fn as_raw(&self) -> cudaMipmappedArray_t
Raw cudaMipmappedArray_t handle. Use with care — owned by self.
Sourcepub fn level(&self, level: u32) -> Result<cudaArray_t>
pub fn level(&self, level: u32) -> Result<cudaArray_t>
Fetch the level-th mipmap as a regular cudaArray_t (view; does
NOT free on drop — the parent mipmapped array owns it).
Trait Implementations§
Source§impl Clone for MipmappedArray
impl Clone for MipmappedArray
Source§fn clone(&self) -> MipmappedArray
fn clone(&self) -> MipmappedArray
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MipmappedArray
impl RefUnwindSafe for MipmappedArray
impl Send for MipmappedArray
impl Sync for MipmappedArray
impl Unpin for MipmappedArray
impl UnsafeUnpin for MipmappedArray
impl UnwindSafe for MipmappedArray
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