Struct CreationGraphInterpreterApi

Source
#[repr(C)]
pub struct CreationGraphInterpreterApi {
Show 23 fields pub create_graph_interpreter: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut CreationGraphInterpreterO>, pub destroy_graph_interpreter: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO)>, pub set_graph: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO, nodes: *const CreationGraphInterpreterNodeT, num_nodes: u32, num_wires: u32, node_wires: *mut u32, num_node_wires: u32, dependencies: *mut u32, num_dependencies: u32)>, pub default_instance: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO) -> CreationGraphInstanceT>, pub active_instances: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO, count: *mut u32) -> *mut *mut CreationGraphInstanceDataO>, pub create_instance: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO) -> CreationGraphInstanceT>, pub destroy_instance: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT)>, pub run_node_at_index: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, node: u32)>, pub add_event_node: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO, e: StrhashT, node: u32)>, pub has_event: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO, e: StrhashT) -> bool>, pub trigger_event: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, e: StrhashT)>, pub trigger_wire: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, wire: u32)>, pub gather_stripped_graph: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, nodes: *mut SetIdT)>, pub queue_wire: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, wire: u32, delay: f32)>, pub tick_queue: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, dt: f32)>, pub get_node_run_context: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, node: u32) -> CreationGraphInterpreterContextT>, pub read_wire: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, wire: u32) -> CreationGraphInterpreterWireContentT>, pub read_wires: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, content: *mut CreationGraphInterpreterWireContentT, wires: *const u32, n: u32)>, pub read_wires_indirect: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, content: *mut *mut CreationGraphInterpreterWireContentT, wires: *const u32, n: u32)>, pub write_wire: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, wire: u32, type_info: StrhashT, n: u32, size: u32) -> *mut c_void>, pub read_variable: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, variable: u64) -> CreationGraphInterpreterWireContentT>, pub write_variable: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, variable: u64, n: u32, size: u32) -> *mut c_void>, pub random_float: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT) -> f32>,
}

Fields§

§create_graph_interpreter: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut CreationGraphInterpreterO>§destroy_graph_interpreter: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO)>§set_graph: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO, nodes: *const CreationGraphInterpreterNodeT, num_nodes: u32, num_wires: u32, node_wires: *mut u32, num_node_wires: u32, dependencies: *mut u32, num_dependencies: u32)>§default_instance: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO) -> CreationGraphInstanceT>§active_instances: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO, count: *mut u32) -> *mut *mut CreationGraphInstanceDataO>§create_instance: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO) -> CreationGraphInstanceT>§destroy_instance: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT)>§run_node_at_index: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, node: u32)>§add_event_node: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO, e: StrhashT, node: u32)>§has_event: Option<unsafe extern "C" fn(gr: *mut CreationGraphInterpreterO, e: StrhashT) -> bool>§trigger_event: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, e: StrhashT)>§trigger_wire: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, wire: u32)>§gather_stripped_graph: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, nodes: *mut SetIdT)>§queue_wire: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, wire: u32, delay: f32)>§tick_queue: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT, dt: f32)>§get_node_run_context: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, node: u32) -> CreationGraphInterpreterContextT>§read_wire: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, wire: u32) -> CreationGraphInterpreterWireContentT>§read_wires: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, content: *mut CreationGraphInterpreterWireContentT, wires: *const u32, n: u32)>§read_wires_indirect: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, content: *mut *mut CreationGraphInterpreterWireContentT, wires: *const u32, n: u32)>§write_wire: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, wire: u32, type_info: StrhashT, n: u32, size: u32) -> *mut c_void>§read_variable: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, variable: u64) -> CreationGraphInterpreterWireContentT>§write_variable: Option<unsafe extern "C" fn(inst: *mut CreationGraphInstanceT, variable: u64, n: u32, size: u32) -> *mut c_void>§random_float: Option<unsafe extern "C" fn(rc: *mut CreationGraphInstanceT) -> f32>

Implementations§

Source§

impl CreationGraphInterpreterApi

Source

pub unsafe fn create_graph_interpreter( &self, allocator: *mut AllocatorI, ) -> *mut CreationGraphInterpreterO

Source

pub unsafe fn destroy_graph_interpreter( &self, gr: *mut CreationGraphInterpreterO, )

Source

pub unsafe fn set_graph( &self, gr: *mut CreationGraphInterpreterO, nodes: *const CreationGraphInterpreterNodeT, num_nodes: u32, num_wires: u32, node_wires: *mut u32, num_node_wires: u32, dependencies: *mut u32, num_dependencies: u32, )

Source

pub unsafe fn default_instance( &self, gr: *mut CreationGraphInterpreterO, ) -> CreationGraphInstanceT

Source

pub unsafe fn active_instances( &self, gr: *mut CreationGraphInterpreterO, count: *mut u32, ) -> *mut *mut CreationGraphInstanceDataO

Source

pub unsafe fn create_instance( &self, gr: *mut CreationGraphInterpreterO, ) -> CreationGraphInstanceT

Source

pub unsafe fn destroy_instance(&self, rc: *mut CreationGraphInstanceT)

Source

pub unsafe fn run_node_at_index( &self, rc: *mut CreationGraphInstanceT, node: u32, )

Source

pub unsafe fn add_event_node( &self, gr: *mut CreationGraphInterpreterO, e: StrhashT, node: u32, )

Source

pub unsafe fn has_event( &self, gr: *mut CreationGraphInterpreterO, e: StrhashT, ) -> bool

Source

pub unsafe fn trigger_event(&self, rc: *mut CreationGraphInstanceT, e: StrhashT)

Source

pub unsafe fn trigger_wire(&self, rc: *mut CreationGraphInstanceT, wire: u32)

Source

pub unsafe fn gather_stripped_graph( &self, rc: *mut CreationGraphInstanceT, nodes: *mut SetIdT, )

Source

pub unsafe fn queue_wire( &self, rc: *mut CreationGraphInstanceT, wire: u32, delay: f32, )

Source

pub unsafe fn tick_queue(&self, rc: *mut CreationGraphInstanceT, dt: f32)

Source

pub unsafe fn get_node_run_context( &self, inst: *mut CreationGraphInstanceT, node: u32, ) -> CreationGraphInterpreterContextT

Source

pub unsafe fn read_wire( &self, inst: *mut CreationGraphInstanceT, wire: u32, ) -> CreationGraphInterpreterWireContentT

Source

pub unsafe fn read_wires( &self, inst: *mut CreationGraphInstanceT, content: *mut CreationGraphInterpreterWireContentT, wires: *const u32, n: u32, )

Source

pub unsafe fn read_wires_indirect( &self, inst: *mut CreationGraphInstanceT, content: *mut *mut CreationGraphInterpreterWireContentT, wires: *const u32, n: u32, )

Source

pub unsafe fn write_wire( &self, inst: *mut CreationGraphInstanceT, wire: u32, type_info: StrhashT, n: u32, size: u32, ) -> *mut c_void

Source

pub unsafe fn read_variable( &self, inst: *mut CreationGraphInstanceT, variable: u64, ) -> CreationGraphInterpreterWireContentT

Source

pub unsafe fn write_variable( &self, inst: *mut CreationGraphInstanceT, variable: u64, n: u32, size: u32, ) -> *mut c_void

Source

pub unsafe fn random_float(&self, rc: *mut CreationGraphInstanceT) -> f32

Trait Implementations§

Source§

impl Api for CreationGraphInterpreterApi

Source§

impl Clone for CreationGraphInterpreterApi

Source§

fn clone(&self) -> CreationGraphInterpreterApi

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 CreationGraphInterpreterApi

Source§

fn default() -> CreationGraphInterpreterApi

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

impl Copy for CreationGraphInterpreterApi

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.