#[repr(C)]pub struct tm_shader_api {Show 18 fields
pub create_constant_buffer_instances: Option<unsafe extern "C" fn(*mut tm_shader_io_o, u32, *mut tm_shader_constant_buffer_instance_t)>,
pub create_constant_buffer_instances_from_template: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_renderer_resource_command_buffer_o, u32, *mut tm_shader_constant_buffer_instance_t, tm_shader_constant_buffer_instance_t)>,
pub destroy_constant_buffer_instances: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_shader_constant_buffer_instance_t, u32)>,
pub create_resource_binder_instances: Option<unsafe extern "C" fn(*mut tm_shader_io_o, u32, *mut tm_shader_resource_binder_instance_t)>,
pub destroy_resource_binder_instances: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_shader_resource_binder_instance_t, u32)>,
pub reflect_constants: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut u32, *mut tm_shader_constant_t, *mut u32)>,
pub lookup_constant: Option<unsafe extern "C" fn(*mut tm_shader_io_o, u64, *mut tm_shader_constant_t, *mut u32) -> bool>,
pub update_constants: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_renderer_resource_command_buffer_o, *const tm_shader_constant_update_t, u32)>,
pub update_constants_raw: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_renderer_resource_command_buffer_o, *const u32, *mut *const c_void, u32, u32, u32)>,
pub update_constant_buffer_instances_from_template: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_renderer_resource_command_buffer_o, u32, *mut tm_shader_constant_buffer_instance_t, tm_shader_constant_buffer_instance_t)>,
pub reflect_resources: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut u32, *mut tm_shader_resource_t, *mut u32)>,
pub lookup_resource: Option<unsafe extern "C" fn(*mut tm_shader_io_o, u64, *mut tm_shader_resource_t, *mut u32) -> bool>,
pub update_resources: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_renderer_resource_command_buffer_o, *mut tm_shader_resource_update_t, u32)>,
pub max_passes: Option<unsafe extern "C" fn(*mut tm_shader_o) -> u8>,
pub assemble_shader_infos: Option<unsafe extern "C" fn(*mut tm_shader_o, *const u32, u32, *const tm_shader_system_context_o, u64, *mut tm_renderer_resource_command_buffer_o, *const tm_shader_constant_buffer_instance_t, *const tm_shader_resource_binder_instance_t, u32, *mut tm_renderer_shader_info_t) -> u8>,
pub shader_io: Option<unsafe extern "C" fn(*mut tm_shader_o) -> *mut tm_shader_io_o>,
pub system_io: Option<unsafe extern "C" fn(*mut tm_shader_system_o) -> *mut tm_shader_io_o>,
pub name: Option<unsafe extern "C" fn(*mut tm_shader_o) -> u64>,
}Fields§
§create_constant_buffer_instances: Option<unsafe extern "C" fn(*mut tm_shader_io_o, u32, *mut tm_shader_constant_buffer_instance_t)>§create_constant_buffer_instances_from_template: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_renderer_resource_command_buffer_o, u32, *mut tm_shader_constant_buffer_instance_t, tm_shader_constant_buffer_instance_t)>§destroy_constant_buffer_instances: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_shader_constant_buffer_instance_t, u32)>§create_resource_binder_instances: Option<unsafe extern "C" fn(*mut tm_shader_io_o, u32, *mut tm_shader_resource_binder_instance_t)>§destroy_resource_binder_instances: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_shader_resource_binder_instance_t, u32)>§reflect_constants: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut u32, *mut tm_shader_constant_t, *mut u32)>§lookup_constant: Option<unsafe extern "C" fn(*mut tm_shader_io_o, u64, *mut tm_shader_constant_t, *mut u32) -> bool>§update_constants: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_renderer_resource_command_buffer_o, *const tm_shader_constant_update_t, u32)>§update_constants_raw: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_renderer_resource_command_buffer_o, *const u32, *mut *const c_void, u32, u32, u32)>§update_constant_buffer_instances_from_template: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_renderer_resource_command_buffer_o, u32, *mut tm_shader_constant_buffer_instance_t, tm_shader_constant_buffer_instance_t)>§reflect_resources: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut u32, *mut tm_shader_resource_t, *mut u32)>§lookup_resource: Option<unsafe extern "C" fn(*mut tm_shader_io_o, u64, *mut tm_shader_resource_t, *mut u32) -> bool>§update_resources: Option<unsafe extern "C" fn(*mut tm_shader_io_o, *mut tm_renderer_resource_command_buffer_o, *mut tm_shader_resource_update_t, u32)>§max_passes: Option<unsafe extern "C" fn(*mut tm_shader_o) -> u8>§assemble_shader_infos: Option<unsafe extern "C" fn(*mut tm_shader_o, *const u32, u32, *const tm_shader_system_context_o, u64, *mut tm_renderer_resource_command_buffer_o, *const tm_shader_constant_buffer_instance_t, *const tm_shader_resource_binder_instance_t, u32, *mut tm_renderer_shader_info_t) -> u8>§shader_io: Option<unsafe extern "C" fn(*mut tm_shader_o) -> *mut tm_shader_io_o>§system_io: Option<unsafe extern "C" fn(*mut tm_shader_system_o) -> *mut tm_shader_io_o>§name: Option<unsafe extern "C" fn(*mut tm_shader_o) -> u64>Trait Implementations§
Source§impl Clone for tm_shader_api
impl Clone for tm_shader_api
Source§fn clone(&self) -> tm_shader_api
fn clone(&self) -> tm_shader_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_api
Auto Trait Implementations§
impl Freeze for tm_shader_api
impl RefUnwindSafe for tm_shader_api
impl Send for tm_shader_api
impl Sync for tm_shader_api
impl Unpin for tm_shader_api
impl UnwindSafe for tm_shader_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