#[repr(C)]pub struct ShaderCreationGraphApi {
pub create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>,
pub compile_data_to_wire: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, wire: u32, tt: *const TheTruthO, data_id: TtIdT, to_type_hash: StrhashT) -> bool>,
pub node_from_declaration: Option<unsafe extern "C" fn(tt: *mut TheTruthO, declaration: TtIdT, node: *mut CreationGraphNodeTypeI, a: *mut AllocatorI)>,
pub register_static_graph_nodes: Option<unsafe extern "C" fn(reg: *mut ApiRegistryApi, load: bool)>,
pub wire_result_as_string: Option<unsafe extern "C" fn(tt: *const TheTruthO, ta: *mut TempAllocatorI, cw: *const CreationGraphInterpreterWireContentT, requested_type: *const ConnectorTypeT) -> *const c_char>,
}
Fields§
§create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>
§compile_data_to_wire: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, wire: u32, tt: *const TheTruthO, data_id: TtIdT, to_type_hash: StrhashT) -> bool>
§node_from_declaration: Option<unsafe extern "C" fn(tt: *mut TheTruthO, declaration: TtIdT, node: *mut CreationGraphNodeTypeI, a: *mut AllocatorI)>
§register_static_graph_nodes: Option<unsafe extern "C" fn(reg: *mut ApiRegistryApi, load: bool)>
§wire_result_as_string: Option<unsafe extern "C" fn(tt: *const TheTruthO, ta: *mut TempAllocatorI, cw: *const CreationGraphInterpreterWireContentT, requested_type: *const ConnectorTypeT) -> *const c_char>
Implementations§
Source§impl ShaderCreationGraphApi
impl ShaderCreationGraphApi
pub unsafe fn create_truth_types(&self, tt: *mut TheTruthO)
pub unsafe fn compile_data_to_wire( &self, inst: *mut CreationGraphInstanceT, wire: u32, tt: *const TheTruthO, data_id: TtIdT, to_type_hash: StrhashT, ) -> bool
pub unsafe fn node_from_declaration( &self, tt: *mut TheTruthO, declaration: TtIdT, node: *mut CreationGraphNodeTypeI, a: *mut AllocatorI, )
pub unsafe fn register_static_graph_nodes( &self, reg: *mut ApiRegistryApi, load: bool, )
pub unsafe fn wire_result_as_string( &self, tt: *const TheTruthO, ta: *mut TempAllocatorI, cw: *const CreationGraphInterpreterWireContentT, requested_type: *const ConnectorTypeT, ) -> *const c_char
Trait Implementations§
Source§impl Api for ShaderCreationGraphApi
impl Api for ShaderCreationGraphApi
Source§impl Clone for ShaderCreationGraphApi
impl Clone for ShaderCreationGraphApi
Source§fn clone(&self) -> ShaderCreationGraphApi
fn clone(&self) -> ShaderCreationGraphApi
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 moreSource§impl Default for ShaderCreationGraphApi
impl Default for ShaderCreationGraphApi
Source§fn default() -> ShaderCreationGraphApi
fn default() -> ShaderCreationGraphApi
Returns the “default value” for a type. Read more
impl Copy for ShaderCreationGraphApi
Auto Trait Implementations§
impl Freeze for ShaderCreationGraphApi
impl RefUnwindSafe for ShaderCreationGraphApi
impl Send for ShaderCreationGraphApi
impl Sync for ShaderCreationGraphApi
impl Unpin for ShaderCreationGraphApi
impl UnwindSafe for ShaderCreationGraphApi
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