Skip to main content

CudaGlOps

Trait CudaGlOps 

Source
pub trait CudaGlOps: Send + Sync {
    // Required methods
    fn map(&self, resource: *mut c_void) -> Option<(*mut c_void, usize)>;
    fn unmap(&self, resource: *mut c_void);
    fn unregister(&self, resource: *mut c_void);
}
Expand description

Routes cudaGraphicsMapResources/Unmap/Unregister through the GL worker thread (the GL context must be current there). Implemented by the image crate.

Required Methods§

Source

fn map(&self, resource: *mut c_void) -> Option<(*mut c_void, usize)>

Source

fn unmap(&self, resource: *mut c_void)

Source

fn unregister(&self, resource: *mut c_void)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§