#[repr(C)]pub struct tm_dxc_shader_compiler_api {
pub load: Option<unsafe extern "C" fn(dll_path: *const c_char) -> bool>,
pub unload: Option<unsafe extern "C" fn()>,
pub compile: Option<unsafe extern "C" fn(source: *const c_char, entry_point: *const c_char, stage: u32, output_format: tm_dxc_output_format, result: *mut tm_renderer_shader_blob_t, allocator: *mut tm_allocator_i) -> bool>,
pub preprocess: Option<unsafe extern "C" fn(source: *const c_char, preprocessed_source_blob: *mut tm_renderer_shader_blob_t, allocator: *mut tm_allocator_i) -> bool>,
}Fields§
§load: Option<unsafe extern "C" fn(dll_path: *const c_char) -> bool>§unload: Option<unsafe extern "C" fn()>§compile: Option<unsafe extern "C" fn(source: *const c_char, entry_point: *const c_char, stage: u32, output_format: tm_dxc_output_format, result: *mut tm_renderer_shader_blob_t, allocator: *mut tm_allocator_i) -> bool>§preprocess: Option<unsafe extern "C" fn(source: *const c_char, preprocessed_source_blob: *mut tm_renderer_shader_blob_t, allocator: *mut tm_allocator_i) -> bool>Trait Implementations§
Source§impl Clone for tm_dxc_shader_compiler_api
impl Clone for tm_dxc_shader_compiler_api
Source§fn clone(&self) -> tm_dxc_shader_compiler_api
fn clone(&self) -> tm_dxc_shader_compiler_api
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 moreimpl Copy for tm_dxc_shader_compiler_api
Auto Trait Implementations§
impl Freeze for tm_dxc_shader_compiler_api
impl RefUnwindSafe for tm_dxc_shader_compiler_api
impl Send for tm_dxc_shader_compiler_api
impl Sync for tm_dxc_shader_compiler_api
impl Unpin for tm_dxc_shader_compiler_api
impl UnsafeUnpin for tm_dxc_shader_compiler_api
impl UnwindSafe for tm_dxc_shader_compiler_api
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