#[repr(C)]pub struct tm_viewer_api {
pub request_render: Option<unsafe extern "C" fn(*mut tm_viewer_o, *const tm_viewer_render_args_t, *mut tm_viewer_render_info_t, *mut tm_renderer_resource_command_buffer_o, *mut tm_renderer_command_buffer_o) -> u32>,
pub pipeline: Option<unsafe extern "C" fn(*mut tm_viewer_o) -> *mut tm_render_pipeline_i>,
pub reset_render_pipeline: Option<unsafe extern "C" fn(*mut tm_viewer_o)>,
pub set_render_pipeline_api: Option<unsafe extern "C" fn(*mut tm_viewer_o, *mut tm_render_pipeline_api)>,
pub screenshot: Option<unsafe extern "C" fn(*mut tm_viewer_o)>,
pub init_vr: Option<unsafe extern "C" fn(*mut tm_viewer_o, bool)>,
}Fields§
§request_render: Option<unsafe extern "C" fn(*mut tm_viewer_o, *const tm_viewer_render_args_t, *mut tm_viewer_render_info_t, *mut tm_renderer_resource_command_buffer_o, *mut tm_renderer_command_buffer_o) -> u32>§pipeline: Option<unsafe extern "C" fn(*mut tm_viewer_o) -> *mut tm_render_pipeline_i>§reset_render_pipeline: Option<unsafe extern "C" fn(*mut tm_viewer_o)>§set_render_pipeline_api: Option<unsafe extern "C" fn(*mut tm_viewer_o, *mut tm_render_pipeline_api)>§screenshot: Option<unsafe extern "C" fn(*mut tm_viewer_o)>§init_vr: Option<unsafe extern "C" fn(*mut tm_viewer_o, bool)>Trait Implementations§
Source§impl Clone for tm_viewer_api
impl Clone for tm_viewer_api
Source§fn clone(&self) -> tm_viewer_api
fn clone(&self) -> tm_viewer_api
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 moreimpl Copy for tm_viewer_api
Auto Trait Implementations§
impl Freeze for tm_viewer_api
impl RefUnwindSafe for tm_viewer_api
impl Send for tm_viewer_api
impl Sync for tm_viewer_api
impl Unpin for tm_viewer_api
impl UnwindSafe for tm_viewer_api
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