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_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
pub unsafe fn create(
&self,
allocator: *mut AllocatorI,
name: *const c_char
) -> *mut RenderGraphModuleO
pub unsafe fn destroy(
&self,
render_module: *mut RenderGraphModuleO,
res_buf: *mut RendererResourceCommandBufferO
)
pub unsafe fn human_readable_name(
&self,
render_module: *const RenderGraphModuleO
) -> *const c_char
pub unsafe fn add_pass(
&self,
render_module: *mut RenderGraphModuleO,
pass: *const RenderGraphPassI
)
pub unsafe fn add_extension_point(
&self,
render_module: *mut RenderGraphModuleO,
extension_point_name: StrhashT
)
pub unsafe fn insert_extension(
&self,
render_module: *mut RenderGraphModuleO,
extension_point_name: StrhashT,
extension: *mut RenderGraphModuleO,
ordering_weight: f32
) -> bool
pub unsafe fn remove_extension(
&self,
render_module: *mut RenderGraphModuleO,
res_buf: *mut RendererResourceCommandBufferO,
extension_point_name: StrhashT,
extension: *mut RenderGraphModuleO
) -> bool
pub unsafe fn add_sub_module(
&self,
render_module: *mut RenderGraphModuleO,
shader_layer_name: StrhashT,
sub_module: *mut RenderGraphModuleO
)
pub unsafe fn init_passes(
&self,
render_module: *mut RenderGraphModuleO,
res_buf: *mut RendererResourceCommandBufferO
)
pub unsafe fn set_editor_toolbar(
&self,
render_module: *mut RenderGraphModuleO,
toolbar: *mut ToolbarI
)
pub unsafe fn editor_toolbars(
&self,
render_module: *mut RenderGraphModuleO,
ta: *mut TempAllocatorI
) -> *mut ToolbarI
pub unsafe fn create_persistent_gpu_image(
&self,
render_module: *mut RenderGraphModuleO,
name: StrhashT,
image_desc: *const RendererImageDescT,
inherits: StrhashT,
scale: *const f32
)
pub unsafe fn create_persistent_gpu_buffer(
&self,
render_module: *mut RenderGraphModuleO,
name: StrhashT,
buffer_desc: *const RendererBufferDescT,
inherits: StrhashT
)
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for RenderGraphModuleApi
impl Send for RenderGraphModuleApi
impl Sync for RenderGraphModuleApi
impl Unpin for RenderGraphModuleApi
impl UnwindSafe for RenderGraphModuleApi
Blanket Implementations
Mutably borrows from an owned value. Read more