pub struct TextureObject { /* private fields */ }Expand description
A texture object — a read-only, filtered view onto a CUDA array.
Implementations§
Source§impl TextureObject
impl TextureObject
Sourcepub fn new(array: &Array) -> Result<Self>
pub fn new(array: &Array) -> Result<Self>
Create a texture object that reads from array. Uses point filtering
and clamp addressing by default; override with TextureObject::with_desc.
pub fn with_desc(array: &Array, desc: TextureDesc) -> Result<Self>
pub fn as_raw(&self) -> CUtexObject
Trait Implementations§
Source§impl Debug for TextureObject
impl Debug for TextureObject
Source§impl Drop for TextureObject
impl Drop for TextureObject
impl Send for TextureObject
impl Sync for TextureObject
Auto Trait Implementations§
impl Freeze for TextureObject
impl RefUnwindSafe for TextureObject
impl Unpin for TextureObject
impl UnsafeUnpin for TextureObject
impl UnwindSafe for TextureObject
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