[][src]Struct tm_sys::ffi::tm_shader_system_api

#[repr(C)]pub struct tm_shader_system_api {
    pub create_context: Option<unsafe extern "C" fn(allocator: *mut tm_allocator_i, render_graph: *mut tm_render_graph_o) -> *mut tm_shader_system_context_o>,
    pub clone_context: Option<unsafe extern "C" fn(src_context: *const tm_shader_system_context_o, allocator: *mut tm_allocator_i) -> *mut tm_shader_system_context_o>,
    pub destroy_context: Option<unsafe extern "C" fn(context: *mut tm_shader_system_context_o)>,
    pub set_render_graph: Option<unsafe extern "C" fn(context: *mut tm_shader_system_context_o, render_graph: *mut tm_render_graph_o)>,
    pub activate_system: Option<unsafe extern "C" fn(context: *mut tm_shader_system_context_o, system: *mut tm_shader_system_o, cbuffer_instances: *const tm_shader_constant_buffer_instance_t, num_cbuffer_instances: u32, rbinder_instances: *const tm_shader_resource_binder_instance_t, num_rbinder_instances: u32)>,
    pub deactivate_system: Option<unsafe extern "C" fn(context: *mut tm_shader_system_context_o, system: *mut tm_shader_system_o)>,
}

Fields

create_context: Option<unsafe extern "C" fn(allocator: *mut tm_allocator_i, render_graph: *mut tm_render_graph_o) -> *mut tm_shader_system_context_o>clone_context: Option<unsafe extern "C" fn(src_context: *const tm_shader_system_context_o, allocator: *mut tm_allocator_i) -> *mut tm_shader_system_context_o>destroy_context: Option<unsafe extern "C" fn(context: *mut tm_shader_system_context_o)>set_render_graph: Option<unsafe extern "C" fn(context: *mut tm_shader_system_context_o, render_graph: *mut tm_render_graph_o)>activate_system: Option<unsafe extern "C" fn(context: *mut tm_shader_system_context_o, system: *mut tm_shader_system_o, cbuffer_instances: *const tm_shader_constant_buffer_instance_t, num_cbuffer_instances: u32, rbinder_instances: *const tm_shader_resource_binder_instance_t, num_rbinder_instances: u32)>deactivate_system: Option<unsafe extern "C" fn(context: *mut tm_shader_system_context_o, system: *mut tm_shader_system_o)>

Trait Implementations

impl Clone for tm_shader_system_api[src]

impl Copy for tm_shader_system_api[src]

impl Debug for tm_shader_system_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.