tm_shader_api

Struct tm_shader_api 

Source
#[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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Copy for tm_shader_api

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Any for T
where T: Any,

Source§

impl<T> CloneAny for T
where T: Any + Clone,