Struct machinery_api::plugins::graph_interpreter::GraphInterpreterApi[][src]

#[repr(C)]
pub struct GraphInterpreterApi {
Show 19 fields pub create_graph_interpreter: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut GraphInterpreterO>, pub destroy_graph_interpreter: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO)>, pub set_graph: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, graph_id: TtIdT, nodes: *const GraphInterpreterNodeT, num_nodes: u32, num_wires: u32, node_wires: *mut u32, num_node_wires: u32, dependencies: *mut u32, num_dependencies: u32)>, pub get_graph: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO) -> TtIdT>, pub run_node_at_index: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, node: u32)>, pub add_event_node: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, unique_id: u64, e: StrhashT, node: u32)>, pub trigger_event: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, e: StrhashT)>, pub trigger_wire: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, wire: u32)>, pub queue_event: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, e: StrhashT)>, pub queue_wire: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, wire: u32, delay: f32)>, pub tick_queue: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, dt: f32)>, pub get_node_run_context: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, node: u32) -> GraphInterpreterContextT>, pub read_wire: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, wire: u32) -> GraphInterpreterWireContentT>, pub read_wires: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, content: *mut GraphInterpreterWireContentT, wires: *const u32, n: u32)>, pub read_wires_indirect: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, content: *mut *mut GraphInterpreterWireContentT, wires: *const u32, n: u32)>, pub write_wire: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, wire: u32, n: u32, size: u32) -> *mut c_void>, pub read_variable: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, variable: u64) -> GraphInterpreterWireContentT>, pub write_variable: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, variable: u64, n: u32, size: u32) -> *mut c_void>, pub all_variables: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, allocator: *mut AllocatorI) -> *mut u64>,
}

Fields

create_graph_interpreter: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut GraphInterpreterO>destroy_graph_interpreter: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO)>set_graph: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, graph_id: TtIdT, nodes: *const GraphInterpreterNodeT, num_nodes: u32, num_wires: u32, node_wires: *mut u32, num_node_wires: u32, dependencies: *mut u32, num_dependencies: u32)>get_graph: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO) -> TtIdT>run_node_at_index: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, node: u32)>add_event_node: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, unique_id: u64, e: StrhashT, node: u32)>trigger_event: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, e: StrhashT)>trigger_wire: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, wire: u32)>queue_event: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, e: StrhashT)>queue_wire: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, wire: u32, delay: f32)>tick_queue: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, dt: f32)>get_node_run_context: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, node: u32) -> GraphInterpreterContextT>read_wire: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, wire: u32) -> GraphInterpreterWireContentT>read_wires: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, content: *mut GraphInterpreterWireContentT, wires: *const u32, n: u32)>read_wires_indirect: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, content: *mut *mut GraphInterpreterWireContentT, wires: *const u32, n: u32)>write_wire: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, wire: u32, n: u32, size: u32) -> *mut c_void>read_variable: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, variable: u64) -> GraphInterpreterWireContentT>write_variable: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, variable: u64, n: u32, size: u32) -> *mut c_void>all_variables: Option<unsafe extern "C" fn(gr: *mut GraphInterpreterO, allocator: *mut AllocatorI) -> *mut u64>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.