#[repr(C)]pub struct virgl_renderer_callbacks {
pub version: c_int,
pub write_fence: Option<unsafe extern "C" fn(cookie: *mut c_void, fence: u32)>,
pub create_gl_context: Option<unsafe extern "C" fn(cookie: *mut c_void, scanout_idx: c_int, param: *mut virgl_renderer_gl_ctx_param) -> *mut c_void>,
pub destroy_gl_context: Option<unsafe extern "C" fn(cookie: *mut c_void, ctx: *mut c_void)>,
pub make_current: Option<unsafe extern "C" fn(cookie: *mut c_void, scanout_idx: c_int, ctx: *mut c_void) -> c_int>,
pub get_drm_fd: Option<unsafe extern "C" fn(cookie: *mut c_void) -> c_int>,
pub write_context_fence: Option<unsafe extern "C" fn(cookie: *mut c_void, ctx_id: u32, ring_idx: u32, fence_id: u64)>,
pub get_server_fd: Option<unsafe extern "C" fn(cookie: *mut c_void, version: u32) -> c_int>,
pub get_egl_display: Option<unsafe extern "C" fn(cookie: *mut c_void) -> *mut c_void>,
}
Fields§
§version: c_int
§write_fence: Option<unsafe extern "C" fn(cookie: *mut c_void, fence: u32)>
§create_gl_context: Option<unsafe extern "C" fn(cookie: *mut c_void, scanout_idx: c_int, param: *mut virgl_renderer_gl_ctx_param) -> *mut c_void>
§destroy_gl_context: Option<unsafe extern "C" fn(cookie: *mut c_void, ctx: *mut c_void)>
§make_current: Option<unsafe extern "C" fn(cookie: *mut c_void, scanout_idx: c_int, ctx: *mut c_void) -> c_int>
§get_drm_fd: Option<unsafe extern "C" fn(cookie: *mut c_void) -> c_int>
§write_context_fence: Option<unsafe extern "C" fn(cookie: *mut c_void, ctx_id: u32, ring_idx: u32, fence_id: u64)>
§get_server_fd: Option<unsafe extern "C" fn(cookie: *mut c_void, version: u32) -> c_int>
§get_egl_display: Option<unsafe extern "C" fn(cookie: *mut c_void) -> *mut c_void>
Trait Implementations§
source§impl Clone for virgl_renderer_callbacks
impl Clone for virgl_renderer_callbacks
source§fn clone(&self) -> virgl_renderer_callbacks
fn clone(&self) -> virgl_renderer_callbacks
Returns a copy 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 virgl_renderer_callbacks
impl Debug for virgl_renderer_callbacks
source§impl Default for virgl_renderer_callbacks
impl Default for virgl_renderer_callbacks
source§fn default() -> virgl_renderer_callbacks
fn default() -> virgl_renderer_callbacks
Returns the “default value” for a type. Read more
impl Copy for virgl_renderer_callbacks
Auto Trait Implementations§
impl RefUnwindSafe for virgl_renderer_callbacks
impl Send for virgl_renderer_callbacks
impl Sync for virgl_renderer_callbacks
impl Unpin for virgl_renderer_callbacks
impl UnwindSafe for virgl_renderer_callbacks
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