#[repr(C)]pub struct RenderGraphModuleApi {Show 17 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 extensions: Option<unsafe extern "C" fn(render_module: *const RenderGraphModuleO, extension_point_name: StrhashT, num_modules: *mut u32) -> *const *const RenderGraphModuleO>,
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>
§extensions: Option<unsafe extern "C" fn(render_module: *const RenderGraphModuleO, extension_point_name: StrhashT, num_modules: *mut u32) -> *const *const RenderGraphModuleO>
§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§
Source§impl RenderGraphModuleApi
impl RenderGraphModuleApi
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 name(&self, render_module: *const RenderGraphModuleO) -> StrhashT
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 extensions( &self, render_module: *const RenderGraphModuleO, extension_point_name: StrhashT, num_modules: *mut u32, ) -> *const *const RenderGraphModuleO
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§
Source§impl Clone for RenderGraphModuleApi
impl Clone for RenderGraphModuleApi
Source§fn clone(&self) -> RenderGraphModuleApi
fn clone(&self) -> RenderGraphModuleApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for RenderGraphModuleApi
impl Default for RenderGraphModuleApi
Source§fn default() -> RenderGraphModuleApi
fn default() -> RenderGraphModuleApi
Returns the “default value” for a type. Read more
impl Copy for RenderGraphModuleApi
Auto Trait Implementations§
impl Freeze for RenderGraphModuleApi
impl RefUnwindSafe for RenderGraphModuleApi
impl Send for RenderGraphModuleApi
impl Sync for RenderGraphModuleApi
impl Unpin for RenderGraphModuleApi
impl UnwindSafe for RenderGraphModuleApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more