pub struct SurfaceObject { /* private fields */ }Expand description
A surface object — writable array access from kernels.
Implementations§
Source§impl SurfaceObject
impl SurfaceObject
pub fn as_raw(&self) -> cudaSurfaceObject_t
Sourcepub fn resource_desc(&self) -> Result<cudaResourceDesc>
pub fn resource_desc(&self) -> Result<cudaResourceDesc>
Query the resource descriptor the surface was created with.
Trait Implementations§
Source§impl Debug for SurfaceObject
impl Debug for SurfaceObject
Auto Trait Implementations§
impl Freeze for SurfaceObject
impl RefUnwindSafe for SurfaceObject
impl Send for SurfaceObject
impl Sync for SurfaceObject
impl Unpin for SurfaceObject
impl UnsafeUnpin for SurfaceObject
impl UnwindSafe for SurfaceObject
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