#[repr(C)]pub struct CreationGraphApi {Show 26 fields
pub create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>,
pub asset_browser_create_interface: Option<unsafe extern "C" fn() -> *mut AssetBrowserCreateAssetI>,
pub create_instance: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, context: *mut CreationGraphContextT) -> CreationGraphInstanceT>,
pub destroy_instance: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT)>,
pub invalidate: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT)>,
pub write_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *const CreationGraphBlackboardValueT)>,
pub read_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *mut CreationGraphBlackboardValueT) -> bool>,
pub remove_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT)>,
pub lock_resource_cache: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT) -> *mut CreationGraphNodeCacheT>,
pub unlock_resource_cache: Option<unsafe extern "C" fn(cache: *mut CreationGraphNodeCacheT)>,
pub add_listener: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, object: TtIdT)>,
pub tick_queue: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, dt: f32, context: *mut CreationGraphContextT)>,
pub has_event: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, event_id: StrhashT) -> bool>,
pub trigger_event: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, event_id: StrhashT, context: *mut CreationGraphContextT)>,
pub update_interface: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, interface_id: StrhashT, context: *mut CreationGraphContextT)>,
pub lookup_cached_node_result: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT) -> CachedNodeResultT>,
pub set_cached_node_result: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT, validity_hash: u64, object: TtIdT)>,
pub output: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, node_name_hash: StrhashT, context: *mut CreationGraphContextT, output_node_type: *mut *const CreationGraphOutputNodeTypeT) -> CreationGraphOutputT>,
pub all_outputs: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT) -> CreationGraphAllOutputsT>,
pub refresh_outputs: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT)>,
pub named_output: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, type_: StrhashT, name: StrhashT) -> CreationGraphNamedOutputT>,
pub gather_stripped_graph: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, nodes: *mut SetIdT)>,
pub get_instances_from_component: Option<unsafe extern "C" fn(tt: *mut TheTruthO, entity_ctx: *mut EntityContextO, entity: EntityT, component_name_hash: StrhashT, ta: *mut TempAllocatorI) -> *mut *mut CreationGraphInstanceT>,
pub set_input_value: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, name: StrhashT, data: *mut c_void, data_size: u32)>,
pub queue_instances_for_dirty_marking: Option<unsafe extern "C" fn(instances: *mut CreationGraphInstanceT, num_instances: u32)>,
pub get_buffer_async: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, object: TtIdT, property: u32, buffer: *mut TtBufferT)>,
}
Fields§
§create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>
§asset_browser_create_interface: Option<unsafe extern "C" fn() -> *mut AssetBrowserCreateAssetI>
§create_instance: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, context: *mut CreationGraphContextT) -> CreationGraphInstanceT>
§destroy_instance: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT)>
§invalidate: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT)>
§write_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *const CreationGraphBlackboardValueT)>
§read_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *mut CreationGraphBlackboardValueT) -> bool>
§remove_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT)>
§lock_resource_cache: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT) -> *mut CreationGraphNodeCacheT>
§unlock_resource_cache: Option<unsafe extern "C" fn(cache: *mut CreationGraphNodeCacheT)>
§add_listener: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, object: TtIdT)>
§tick_queue: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, dt: f32, context: *mut CreationGraphContextT)>
§has_event: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, event_id: StrhashT) -> bool>
§trigger_event: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, event_id: StrhashT, context: *mut CreationGraphContextT)>
§update_interface: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, interface_id: StrhashT, context: *mut CreationGraphContextT)>
§lookup_cached_node_result: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT) -> CachedNodeResultT>
§set_cached_node_result: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT, validity_hash: u64, object: TtIdT)>
§output: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, node_name_hash: StrhashT, context: *mut CreationGraphContextT, output_node_type: *mut *const CreationGraphOutputNodeTypeT) -> CreationGraphOutputT>
§all_outputs: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT) -> CreationGraphAllOutputsT>
§refresh_outputs: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT)>
§named_output: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, type_: StrhashT, name: StrhashT) -> CreationGraphNamedOutputT>
§gather_stripped_graph: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, nodes: *mut SetIdT)>
§get_instances_from_component: Option<unsafe extern "C" fn(tt: *mut TheTruthO, entity_ctx: *mut EntityContextO, entity: EntityT, component_name_hash: StrhashT, ta: *mut TempAllocatorI) -> *mut *mut CreationGraphInstanceT>
§set_input_value: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, name: StrhashT, data: *mut c_void, data_size: u32)>
§queue_instances_for_dirty_marking: Option<unsafe extern "C" fn(instances: *mut CreationGraphInstanceT, num_instances: u32)>
§get_buffer_async: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, object: TtIdT, property: u32, buffer: *mut TtBufferT)>
Implementations§
Source§impl CreationGraphApi
impl CreationGraphApi
pub unsafe fn create_truth_types(&self, tt: *mut TheTruthO)
pub unsafe fn asset_browser_create_interface( &self, ) -> *mut AssetBrowserCreateAssetI
pub unsafe fn create_instance( &self, tt: *mut TheTruthO, asset: TtIdT, context: *mut CreationGraphContextT, ) -> CreationGraphInstanceT
pub unsafe fn destroy_instance( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, )
pub unsafe fn invalidate(&self, tt: *mut TheTruthO, asset: TtIdT)
pub unsafe fn write_blackboard( &self, tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *const CreationGraphBlackboardValueT, )
pub unsafe fn read_blackboard( &self, tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *mut CreationGraphBlackboardValueT, ) -> bool
pub unsafe fn remove_blackboard( &self, tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, )
pub unsafe fn lock_resource_cache( &self, tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT, ) -> *mut CreationGraphNodeCacheT
pub unsafe fn unlock_resource_cache(&self, cache: *mut CreationGraphNodeCacheT)
pub unsafe fn add_listener( &self, tt: *mut TheTruthO, asset: TtIdT, object: TtIdT, )
pub unsafe fn tick_queue( &self, instance: *mut CreationGraphInstanceT, dt: f32, context: *mut CreationGraphContextT, )
pub unsafe fn has_event( &self, instance: *mut CreationGraphInstanceT, event_id: StrhashT, ) -> bool
pub unsafe fn trigger_event( &self, instance: *mut CreationGraphInstanceT, event_id: StrhashT, context: *mut CreationGraphContextT, )
pub unsafe fn update_interface( &self, instance: *mut CreationGraphInstanceT, interface_id: StrhashT, context: *mut CreationGraphContextT, )
pub unsafe fn lookup_cached_node_result( &self, tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT, ) -> CachedNodeResultT
pub unsafe fn set_cached_node_result( &self, tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT, validity_hash: u64, object: TtIdT, )
pub unsafe fn output( &self, instance: *mut CreationGraphInstanceT, node_name_hash: StrhashT, context: *mut CreationGraphContextT, output_node_type: *mut *const CreationGraphOutputNodeTypeT, ) -> CreationGraphOutputT
pub unsafe fn all_outputs( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, ) -> CreationGraphAllOutputsT
pub unsafe fn refresh_outputs( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, )
pub unsafe fn named_output( &self, instance: *mut CreationGraphInstanceT, type_: StrhashT, name: StrhashT, ) -> CreationGraphNamedOutputT
pub unsafe fn gather_stripped_graph( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, nodes: *mut SetIdT, )
pub unsafe fn get_instances_from_component( &self, tt: *mut TheTruthO, entity_ctx: *mut EntityContextO, entity: EntityT, component_name_hash: StrhashT, ta: *mut TempAllocatorI, ) -> *mut *mut CreationGraphInstanceT
pub unsafe fn set_input_value( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, name: StrhashT, data: *mut c_void, data_size: u32, )
pub unsafe fn queue_instances_for_dirty_marking( &self, instances: *mut CreationGraphInstanceT, num_instances: u32, )
pub unsafe fn get_buffer_async( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, object: TtIdT, property: u32, buffer: *mut TtBufferT, )
Trait Implementations§
Source§impl Clone for CreationGraphApi
impl Clone for CreationGraphApi
Source§fn clone(&self) -> CreationGraphApi
fn clone(&self) -> CreationGraphApi
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 CreationGraphApi
impl Default for CreationGraphApi
Source§fn default() -> CreationGraphApi
fn default() -> CreationGraphApi
Returns the “default value” for a type. Read more
impl Copy for CreationGraphApi
Auto Trait Implementations§
impl Freeze for CreationGraphApi
impl RefUnwindSafe for CreationGraphApi
impl Send for CreationGraphApi
impl Sync for CreationGraphApi
impl Unpin for CreationGraphApi
impl UnwindSafe for CreationGraphApi
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