Struct machinery_api::plugins::shader_system::ShaderCreationGraphApi[][src]

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

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.