#[repr(C)]pub struct gpujpeg_opengl_texture {
pub texture_id: c_int,
pub texture_type: gpujpeg_opengl_texture_type,
pub texture_width: c_int,
pub texture_height: c_int,
pub texture_pbo_type: c_int,
pub texture_pbo_id: c_int,
pub texture_pbo_resource: *mut cudaGraphicsResource,
pub texture_callback_param: *mut c_void,
pub texture_callback_attach_opengl: Option<unsafe extern "C" fn(param: *mut c_void)>,
pub texture_callback_detach_opengl: Option<unsafe extern "C" fn(param: *mut c_void)>,
}Expand description
Represents OpenGL texture that is registered to CUDA, thus the device pointer can be acquired.
Fields§
§texture_id: c_intTexture id
texture_type: gpujpeg_opengl_texture_typeTexture type
texture_width: c_intTexture width
texture_height: c_intTexture height
texture_pbo_type: c_intTexture pixel buffer object type
texture_pbo_id: c_intTexture pixel buffer object id
texture_pbo_resource: *mut cudaGraphicsResourceTexture PBO resource for CUDA
texture_callback_param: *mut c_voidTexture callbacks parameter
texture_callback_attach_opengl: Option<unsafe extern "C" fn(param: *mut c_void)>Texture callback for attaching OpenGL context (by default not used)
texture_callback_detach_opengl: Option<unsafe extern "C" fn(param: *mut c_void)>Texture callback for detaching OpenGL context (by default not used)
Trait Implementations§
Source§impl Clone for gpujpeg_opengl_texture
impl Clone for gpujpeg_opengl_texture
Source§fn clone(&self) -> gpujpeg_opengl_texture
fn clone(&self) -> gpujpeg_opengl_texture
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for gpujpeg_opengl_texture
impl Debug for gpujpeg_opengl_texture
impl Copy for gpujpeg_opengl_texture
Auto Trait Implementations§
impl Freeze for gpujpeg_opengl_texture
impl RefUnwindSafe for gpujpeg_opengl_texture
impl !Send for gpujpeg_opengl_texture
impl !Sync for gpujpeg_opengl_texture
impl Unpin for gpujpeg_opengl_texture
impl UnwindSafe for gpujpeg_opengl_texture
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