#[repr(C)]pub struct tm_shader_system_api {
pub create_context: Option<unsafe extern "C" fn(*mut tm_allocator_i, *mut tm_render_graph_o) -> *mut tm_shader_system_context_o>,
pub clone_context: Option<unsafe extern "C" fn(*const tm_shader_system_context_o, *mut tm_allocator_i) -> *mut tm_shader_system_context_o>,
pub destroy_context: Option<unsafe extern "C" fn(*mut tm_shader_system_context_o)>,
pub set_render_graph: Option<unsafe extern "C" fn(*mut tm_shader_system_context_o, *mut tm_render_graph_o)>,
pub activate_system: Option<unsafe extern "C" fn(*mut tm_shader_system_context_o, *mut tm_shader_system_o, *const tm_shader_constant_buffer_instance_t, u32, *const tm_shader_resource_binder_instance_t, u32)>,
pub deactivate_system: Option<unsafe extern "C" fn(*mut tm_shader_system_context_o, *mut tm_shader_system_o)>,
}Fields§
§create_context: Option<unsafe extern "C" fn(*mut tm_allocator_i, *mut tm_render_graph_o) -> *mut tm_shader_system_context_o>§clone_context: Option<unsafe extern "C" fn(*const tm_shader_system_context_o, *mut tm_allocator_i) -> *mut tm_shader_system_context_o>§destroy_context: Option<unsafe extern "C" fn(*mut tm_shader_system_context_o)>§set_render_graph: Option<unsafe extern "C" fn(*mut tm_shader_system_context_o, *mut tm_render_graph_o)>§activate_system: Option<unsafe extern "C" fn(*mut tm_shader_system_context_o, *mut tm_shader_system_o, *const tm_shader_constant_buffer_instance_t, u32, *const tm_shader_resource_binder_instance_t, u32)>§deactivate_system: Option<unsafe extern "C" fn(*mut tm_shader_system_context_o, *mut tm_shader_system_o)>Trait Implementations§
Source§impl Clone for tm_shader_system_api
impl Clone for tm_shader_system_api
Source§fn clone(&self) -> tm_shader_system_api
fn clone(&self) -> tm_shader_system_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_shader_system_api
Auto Trait Implementations§
impl Freeze for tm_shader_system_api
impl RefUnwindSafe for tm_shader_system_api
impl Send for tm_shader_system_api
impl Sync for tm_shader_system_api
impl Unpin for tm_shader_system_api
impl UnwindSafe for tm_shader_system_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