Struct machinery_api::plugins::renderer::RendererShaderCompilerApi [−][src]
#[repr(C)]pub struct RendererShaderCompilerApi {}Show 19 fields
pub init: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut RendererShaderCompilerO>, pub shutdown: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO)>, pub num_state_block_types: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO) -> u32>, pub state_block_type: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, state_block_type_idx: u32) -> u32>, pub state_block_name: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, state_block_type: u32) -> *const c_char>, pub num_states: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, state_block_type: u32) -> u32>, pub state_name: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, state_block_type: u32, state: u32) -> *const c_char>, pub value_type: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, state_block_type: u32, state: u32) -> u32>, pub num_values: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, value_type: u32) -> u32>, pub value_name: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, value_type: u32, value: u32) -> *const c_char>, pub enum_value: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, value_type: u32, value: u32) -> u32>, pub compile_state_block: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, bind_type: u32, block_type: u32, states: *const RendererStateValuePairT, num_raster_states: u32) -> RendererShaderBlobT>, pub compile_shader: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, source: *const c_char, entry_point: *const c_char, source_language: u32, stage: u32) -> RendererShaderBlobT>, pub bindless: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO) -> bool>, pub bindless_access_buffer: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, usage_flags: u32) -> RendererBindlessAccessorT>, pub bindless_access_image: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, type_: u32, usage_flags: u32) -> RendererBindlessAccessorT>, pub bindless_access_sampler: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO) -> RendererBindlessAccessorT>, pub bindless_access_acceleration_structure: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO) -> RendererBindlessAccessorT>, pub release_blob: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, blob: RendererShaderBlobT)>,
Fields
init: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut RendererShaderCompilerO>shutdown: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO)>num_state_block_types: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO) -> u32>state_block_type: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, state_block_type_idx: u32) -> u32>state_block_name: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, state_block_type: u32) -> *const c_char>num_states: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, state_block_type: u32) -> u32>state_name: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, state_block_type: u32, state: u32) -> *const c_char>value_type: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, state_block_type: u32, state: u32) -> u32>num_values: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, value_type: u32) -> u32>value_name: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, value_type: u32, value: u32) -> *const c_char>enum_value: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, value_type: u32, value: u32) -> u32>compile_state_block: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, bind_type: u32, block_type: u32, states: *const RendererStateValuePairT, num_raster_states: u32) -> RendererShaderBlobT>compile_shader: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, source: *const c_char, entry_point: *const c_char, source_language: u32, stage: u32) -> RendererShaderBlobT>bindless: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO) -> bool>bindless_access_buffer: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, usage_flags: u32) -> RendererBindlessAccessorT>bindless_access_image: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, type_: u32, usage_flags: u32) -> RendererBindlessAccessorT>bindless_access_sampler: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO) -> RendererBindlessAccessorT>bindless_access_acceleration_structure: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO) -> RendererBindlessAccessorT>release_blob: Option<unsafe extern "C" fn(inst: *mut RendererShaderCompilerO, blob: RendererShaderBlobT)>Implementations
pub unsafe fn state_block_type(
&self,
inst: *mut RendererShaderCompilerO,
state_block_type_idx: u32
) -> u32
pub unsafe fn state_block_name(
&self,
inst: *mut RendererShaderCompilerO,
state_block_type: u32
) -> *const c_char
pub unsafe fn num_states(
&self,
inst: *mut RendererShaderCompilerO,
state_block_type: u32
) -> u32
pub unsafe fn state_name(
&self,
inst: *mut RendererShaderCompilerO,
state_block_type: u32,
state: u32
) -> *const c_char
pub unsafe fn value_type(
&self,
inst: *mut RendererShaderCompilerO,
state_block_type: u32,
state: u32
) -> u32
pub unsafe fn value_name(
&self,
inst: *mut RendererShaderCompilerO,
value_type: u32,
value: u32
) -> *const c_char
pub unsafe fn enum_value(
&self,
inst: *mut RendererShaderCompilerO,
value_type: u32,
value: u32
) -> u32
pub unsafe fn compile_state_block(
&self,
inst: *mut RendererShaderCompilerO,
bind_type: u32,
block_type: u32,
states: *const RendererStateValuePairT,
num_raster_states: u32
) -> RendererShaderBlobT
pub unsafe fn compile_shader(
&self,
inst: *mut RendererShaderCompilerO,
source: *const c_char,
entry_point: *const c_char,
source_language: u32,
stage: u32
) -> RendererShaderBlobT
pub unsafe fn bindless_access_buffer(
&self,
inst: *mut RendererShaderCompilerO,
usage_flags: u32
) -> RendererBindlessAccessorT
pub unsafe fn bindless_access_image(
&self,
inst: *mut RendererShaderCompilerO,
type_: u32,
usage_flags: u32
) -> RendererBindlessAccessorT
pub unsafe fn bindless_access_sampler(
&self,
inst: *mut RendererShaderCompilerO
) -> RendererBindlessAccessorT
pub unsafe fn bindless_access_acceleration_structure(
&self,
inst: *mut RendererShaderCompilerO
) -> RendererBindlessAccessorT
pub unsafe fn release_blob(
&self,
inst: *mut RendererShaderCompilerO,
blob: RendererShaderBlobT
)
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for RendererShaderCompilerApi
impl Send for RendererShaderCompilerApi
impl Sync for RendererShaderCompilerApi
impl Unpin for RendererShaderCompilerApi
impl UnwindSafe for RendererShaderCompilerApi
Blanket Implementations
Mutably borrows from an owned value. Read more