RendererShaderCompilerApi

Struct RendererShaderCompilerApi 

Source
#[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§

Source§

impl RendererShaderCompilerApi

Source

pub unsafe fn init( &self, allocator: *mut AllocatorI, ) -> *mut RendererShaderCompilerO

Source

pub unsafe fn shutdown(&self, inst: *mut RendererShaderCompilerO)

Source

pub unsafe fn num_state_block_types( &self, inst: *mut RendererShaderCompilerO, ) -> u32

Source

pub unsafe fn state_block_type( &self, inst: *mut RendererShaderCompilerO, state_block_type_idx: u32, ) -> u32

Source

pub unsafe fn state_block_name( &self, inst: *mut RendererShaderCompilerO, state_block_type: u32, ) -> *const c_char

Source

pub unsafe fn num_states( &self, inst: *mut RendererShaderCompilerO, state_block_type: u32, ) -> u32

Source

pub unsafe fn state_name( &self, inst: *mut RendererShaderCompilerO, state_block_type: u32, state: u32, ) -> *const c_char

Source

pub unsafe fn value_type( &self, inst: *mut RendererShaderCompilerO, state_block_type: u32, state: u32, ) -> u32

Source

pub unsafe fn num_values( &self, inst: *mut RendererShaderCompilerO, value_type: u32, ) -> u32

Source

pub unsafe fn value_name( &self, inst: *mut RendererShaderCompilerO, value_type: u32, value: u32, ) -> *const c_char

Source

pub unsafe fn enum_value( &self, inst: *mut RendererShaderCompilerO, value_type: u32, value: u32, ) -> u32

Source

pub unsafe fn compile_state_block( &self, inst: *mut RendererShaderCompilerO, bind_type: u32, block_type: u32, states: *const RendererStateValuePairT, num_raster_states: u32, ) -> RendererShaderBlobT

Source

pub unsafe fn compile_shader( &self, inst: *mut RendererShaderCompilerO, source: *const c_char, entry_point: *const c_char, source_language: u32, stage: u32, ) -> RendererShaderBlobT

Source

pub unsafe fn bindless(&self, inst: *mut RendererShaderCompilerO) -> bool

Source

pub unsafe fn bindless_access_buffer( &self, inst: *mut RendererShaderCompilerO, usage_flags: u32, ) -> RendererBindlessAccessorT

Source

pub unsafe fn bindless_access_image( &self, inst: *mut RendererShaderCompilerO, type_: u32, usage_flags: u32, ) -> RendererBindlessAccessorT

Source

pub unsafe fn bindless_access_sampler( &self, inst: *mut RendererShaderCompilerO, ) -> RendererBindlessAccessorT

Source

pub unsafe fn bindless_access_acceleration_structure( &self, inst: *mut RendererShaderCompilerO, ) -> RendererBindlessAccessorT

Source

pub unsafe fn release_blob( &self, inst: *mut RendererShaderCompilerO, blob: RendererShaderBlobT, )

Trait Implementations§

Source§

impl Clone for RendererShaderCompilerApi

Source§

fn clone(&self) -> RendererShaderCompilerApi

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for RendererShaderCompilerApi

Source§

fn default() -> RendererShaderCompilerApi

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

impl Copy for RendererShaderCompilerApi

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.