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
pub unsafe fn compile_data_to_wire(
&self,
inst: *mut CreationGraphInstanceT,
wire: u32,
tt: *const TheTruthO,
data_id: TtIdT,
to_type_hash: StrhashT
) -> bool
pub unsafe fn node_from_declaration(
&self,
tt: *mut TheTruthO,
declaration: TtIdT,
node: *mut CreationGraphNodeTypeI,
a: *mut AllocatorI
)
pub unsafe fn wire_result_as_string(
&self,
tt: *const TheTruthO,
ta: *mut TempAllocatorI,
cw: *const CreationGraphInterpreterWireContentT,
requested_type: *const ConnectorTypeT
) -> *const c_char
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ShaderCreationGraphApi
impl Send for ShaderCreationGraphApi
impl Sync for ShaderCreationGraphApi
impl Unpin for ShaderCreationGraphApi
impl UnwindSafe for ShaderCreationGraphApi
Blanket Implementations
Mutably borrows from an owned value. Read more