#[repr(C)]pub struct ShaderSystemApi {
pub create_context: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, render_graph: *mut RenderGraphO) -> *mut ShaderSystemContextO>,
pub clone_context: Option<unsafe extern "C" fn(src_context: *const ShaderSystemContextO, allocator: *mut AllocatorI) -> *mut ShaderSystemContextO>,
pub destroy_context: Option<unsafe extern "C" fn(context: *mut ShaderSystemContextO)>,
pub set_render_graph: Option<unsafe extern "C" fn(context: *mut ShaderSystemContextO, render_graph: *mut RenderGraphO)>,
pub activate_system: Option<unsafe extern "C" fn(context: *mut ShaderSystemContextO, system: *mut ShaderSystemO, cbuffer_instances: *const ShaderConstantBufferInstanceT, num_cbuffer_instances: u32, rbinder_instances: *const ShaderResourceBinderInstanceT, num_rbinder_instances: u32)>,
pub deactivate_system: Option<unsafe extern "C" fn(context: *mut ShaderSystemContextO, system: *mut ShaderSystemO)>,
}
Fields§
§create_context: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, render_graph: *mut RenderGraphO) -> *mut ShaderSystemContextO>
§clone_context: Option<unsafe extern "C" fn(src_context: *const ShaderSystemContextO, allocator: *mut AllocatorI) -> *mut ShaderSystemContextO>
§destroy_context: Option<unsafe extern "C" fn(context: *mut ShaderSystemContextO)>
§set_render_graph: Option<unsafe extern "C" fn(context: *mut ShaderSystemContextO, render_graph: *mut RenderGraphO)>
§activate_system: Option<unsafe extern "C" fn(context: *mut ShaderSystemContextO, system: *mut ShaderSystemO, cbuffer_instances: *const ShaderConstantBufferInstanceT, num_cbuffer_instances: u32, rbinder_instances: *const ShaderResourceBinderInstanceT, num_rbinder_instances: u32)>
§deactivate_system: Option<unsafe extern "C" fn(context: *mut ShaderSystemContextO, system: *mut ShaderSystemO)>
Implementations§
Source§impl ShaderSystemApi
impl ShaderSystemApi
pub unsafe fn create_context( &self, allocator: *mut AllocatorI, render_graph: *mut RenderGraphO, ) -> *mut ShaderSystemContextO
pub unsafe fn clone_context( &self, src_context: *const ShaderSystemContextO, allocator: *mut AllocatorI, ) -> *mut ShaderSystemContextO
pub unsafe fn destroy_context(&self, context: *mut ShaderSystemContextO)
pub unsafe fn set_render_graph( &self, context: *mut ShaderSystemContextO, render_graph: *mut RenderGraphO, )
pub unsafe fn activate_system( &self, context: *mut ShaderSystemContextO, system: *mut ShaderSystemO, cbuffer_instances: *const ShaderConstantBufferInstanceT, num_cbuffer_instances: u32, rbinder_instances: *const ShaderResourceBinderInstanceT, num_rbinder_instances: u32, )
pub unsafe fn deactivate_system( &self, context: *mut ShaderSystemContextO, system: *mut ShaderSystemO, )
Trait Implementations§
Source§impl Clone for ShaderSystemApi
impl Clone for ShaderSystemApi
Source§fn clone(&self) -> ShaderSystemApi
fn clone(&self) -> ShaderSystemApi
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 ShaderSystemApi
impl Default for ShaderSystemApi
Source§fn default() -> ShaderSystemApi
fn default() -> ShaderSystemApi
Returns the “default value” for a type. Read more
impl Copy for ShaderSystemApi
Auto Trait Implementations§
impl Freeze for ShaderSystemApi
impl RefUnwindSafe for ShaderSystemApi
impl Send for ShaderSystemApi
impl Sync for ShaderSystemApi
impl Unpin for ShaderSystemApi
impl UnwindSafe for ShaderSystemApi
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