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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.