Struct gpujpeg_opengl_texture

Source
#[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_int

Texture id

§texture_type: gpujpeg_opengl_texture_type

Texture type

§texture_width: c_int

Texture width

§texture_height: c_int

Texture height

§texture_pbo_type: c_int

Texture pixel buffer object type

§texture_pbo_id: c_int

Texture pixel buffer object id

§texture_pbo_resource: *mut cudaGraphicsResource

Texture PBO resource for CUDA

§texture_callback_param: *mut c_void

Texture 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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for gpujpeg_opengl_texture

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for gpujpeg_opengl_texture

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.