Struct machinery_api::plugins::render_graph::RenderGraphModuleApi[][src]

#[repr(C)]
pub struct RenderGraphModuleApi {
Show 16 fields pub create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, name: *const c_char) -> *mut RenderGraphModuleO>, pub destroy: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, res_buf: *mut RendererResourceCommandBufferO)>, pub name: Option<unsafe extern "C" fn(render_module: *const RenderGraphModuleO) -> StrhashT>, pub human_readable_name: Option<unsafe extern "C" fn(render_module: *const RenderGraphModuleO) -> *const c_char>, pub add_pass: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, pass: *const RenderGraphPassI)>, pub add_extension_point: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, extension_point_name: StrhashT)>, pub insert_extension: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, extension_point_name: StrhashT, extension: *mut RenderGraphModuleO, ordering_weight: f32) -> bool>, pub remove_extension: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, res_buf: *mut RendererResourceCommandBufferO, extension_point_name: StrhashT, extension: *mut RenderGraphModuleO) -> bool>, pub add_sub_module: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, shader_layer_name: StrhashT, sub_module: *mut RenderGraphModuleO)>, pub init_passes: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, res_buf: *mut RendererResourceCommandBufferO)>, pub set_editor_submenu_interface: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, submenu_i: *const RenderGraphModuleEditorSubmenuI)>, pub editor_submenu: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, ui: *mut UiO, uistyle: *const UiStyleT, submenu_pos: Vec2T)>, pub set_editor_toolbar: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, toolbar: *mut ToolbarI)>, pub editor_toolbars: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, ta: *mut TempAllocatorI) -> *mut ToolbarI>, pub create_persistent_gpu_image: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, name: StrhashT, image_desc: *const RendererImageDescT, inherits: StrhashT, scale: *const f32)>, pub create_persistent_gpu_buffer: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, name: StrhashT, buffer_desc: *const RendererBufferDescT, inherits: StrhashT)>,
}

Fields

create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, name: *const c_char) -> *mut RenderGraphModuleO>destroy: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, res_buf: *mut RendererResourceCommandBufferO)>name: Option<unsafe extern "C" fn(render_module: *const RenderGraphModuleO) -> StrhashT>human_readable_name: Option<unsafe extern "C" fn(render_module: *const RenderGraphModuleO) -> *const c_char>add_pass: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, pass: *const RenderGraphPassI)>add_extension_point: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, extension_point_name: StrhashT)>insert_extension: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, extension_point_name: StrhashT, extension: *mut RenderGraphModuleO, ordering_weight: f32) -> bool>remove_extension: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, res_buf: *mut RendererResourceCommandBufferO, extension_point_name: StrhashT, extension: *mut RenderGraphModuleO) -> bool>add_sub_module: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, shader_layer_name: StrhashT, sub_module: *mut RenderGraphModuleO)>init_passes: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, res_buf: *mut RendererResourceCommandBufferO)>set_editor_submenu_interface: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, submenu_i: *const RenderGraphModuleEditorSubmenuI)>editor_submenu: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, ui: *mut UiO, uistyle: *const UiStyleT, submenu_pos: Vec2T)>set_editor_toolbar: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, toolbar: *mut ToolbarI)>editor_toolbars: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, ta: *mut TempAllocatorI) -> *mut ToolbarI>create_persistent_gpu_image: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, name: StrhashT, image_desc: *const RendererImageDescT, inherits: StrhashT, scale: *const f32)>create_persistent_gpu_buffer: Option<unsafe extern "C" fn(render_module: *mut RenderGraphModuleO, name: StrhashT, buffer_desc: *const RendererBufferDescT, inherits: StrhashT)>

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.