rutabaga_gfx/
renderer_utils.rsuse crate::rutabaga_os::SafeDescriptor;
use crate::rutabaga_utils::RutabagaDebugHandler;
use crate::rutabaga_utils::RutabagaError;
use crate::rutabaga_utils::RutabagaFenceHandler;
use crate::rutabaga_utils::RutabagaResult;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct VirglBox {
pub x: u32,
pub y: u32,
pub z: u32,
pub w: u32,
pub h: u32,
pub d: u32,
}
pub fn ret_to_res(ret: i32) -> RutabagaResult<()> {
match ret {
0 => Ok(()),
_ => Err(RutabagaError::ComponentError(ret)),
}
}
pub struct RutabagaCookie {
pub render_server_fd: Option<SafeDescriptor>,
pub fence_handler: Option<RutabagaFenceHandler>,
pub debug_handler: Option<RutabagaDebugHandler>,
}