Struct CreationGraphApi

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

Source

pub unsafe fn create_truth_types(&self, tt: *mut TheTruthO)

Source

pub unsafe fn asset_browser_create_interface( &self, ) -> *mut AssetBrowserCreateAssetI

Source

pub unsafe fn create_instance( &self, tt: *mut TheTruthO, asset: TtIdT, context: *mut CreationGraphContextT, ) -> CreationGraphInstanceT

Source

pub unsafe fn destroy_instance( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, )

Source

pub unsafe fn invalidate(&self, tt: *mut TheTruthO, asset: TtIdT)

Source

pub unsafe fn write_blackboard( &self, tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *const CreationGraphBlackboardValueT, )

Source

pub unsafe fn read_blackboard( &self, tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *mut CreationGraphBlackboardValueT, ) -> bool

Source

pub unsafe fn remove_blackboard( &self, tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, )

Source

pub unsafe fn lock_resource_cache( &self, tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT, ) -> *mut CreationGraphNodeCacheT

Source

pub unsafe fn unlock_resource_cache(&self, cache: *mut CreationGraphNodeCacheT)

Source

pub unsafe fn add_listener( &self, tt: *mut TheTruthO, asset: TtIdT, object: TtIdT, )

Source

pub unsafe fn tick_queue( &self, instance: *mut CreationGraphInstanceT, dt: f32, context: *mut CreationGraphContextT, )

Source

pub unsafe fn has_event( &self, instance: *mut CreationGraphInstanceT, event_id: StrhashT, ) -> bool

Source

pub unsafe fn trigger_event( &self, instance: *mut CreationGraphInstanceT, event_id: StrhashT, context: *mut CreationGraphContextT, )

Source

pub unsafe fn update_interface( &self, instance: *mut CreationGraphInstanceT, interface_id: StrhashT, context: *mut CreationGraphContextT, )

Source

pub unsafe fn lookup_cached_node_result( &self, tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT, ) -> CachedNodeResultT

Source

pub unsafe fn set_cached_node_result( &self, tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT, validity_hash: u64, object: TtIdT, )

Source

pub unsafe fn output( &self, instance: *mut CreationGraphInstanceT, node_name_hash: StrhashT, context: *mut CreationGraphContextT, output_node_type: *mut *const CreationGraphOutputNodeTypeT, ) -> CreationGraphOutputT

Source

pub unsafe fn all_outputs( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, ) -> CreationGraphAllOutputsT

Source

pub unsafe fn refresh_outputs( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, )

Source

pub unsafe fn named_output( &self, instance: *mut CreationGraphInstanceT, type_: StrhashT, name: StrhashT, ) -> CreationGraphNamedOutputT

Source

pub unsafe fn gather_stripped_graph( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, nodes: *mut SetIdT, )

Source

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

Source

pub unsafe fn set_input_value( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, name: StrhashT, data: *mut c_void, data_size: u32, )

Source

pub unsafe fn queue_instances_for_dirty_marking( &self, instances: *mut CreationGraphInstanceT, num_instances: u32, )

Source

pub unsafe fn get_buffer_async( &self, instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, object: TtIdT, property: u32, buffer: *mut TtBufferT, )

Trait Implementations§

Source§

impl Api for CreationGraphApi

Source§

impl Clone for CreationGraphApi

Source§

fn clone(&self) -> CreationGraphApi

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 Default for CreationGraphApi

Source§

fn default() -> CreationGraphApi

Returns the “default value” for a type. Read more
Source§

impl Copy for CreationGraphApi

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.