pub struct SurfaceObject { /* private fields */ }Expand description
A surface object — writable array access from kernels.
Implementations§
Source§impl SurfaceObject
impl SurfaceObject
Sourcepub fn as_raw(&self) -> cudaSurfaceObject_t
pub fn as_raw(&self) -> cudaSurfaceObject_t
Raw cudaSurfaceObject_t handle. Use with care — owned by self.
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
Source§impl Drop for SurfaceObject
impl Drop 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