[][src]Struct spirv_reflect::ShaderModule

pub struct ShaderModule { /* fields omitted */ }

Methods

impl ShaderModule[src]

pub fn load_u8_data(spv_data: &[u8]) -> Result<ShaderModule, &'static str>[src]

pub fn load_u32_data(spv_data: &[u32]) -> Result<ShaderModule, &'static str>[src]

pub fn get_code(&self) -> Vec<u32>[src]

pub fn get_generator(&self) -> ReflectGenerator[src]

pub fn get_shader_stage(&self) -> ReflectShaderStageFlags[src]

pub fn get_source_language(&self) -> SourceLanguage[src]

pub fn get_source_language_version(&self) -> u32[src]

pub fn get_source_file(&self) -> String[src]

pub fn get_source_text(&self) -> String[src]

pub fn get_spirv_execution_model(&self) -> ExecutionModel[src]

pub fn enumerate_input_variables(
    &self,
    entry_point: Option<&str>
) -> Result<Vec<ReflectInterfaceVariable>, &'static str>
[src]

pub fn enumerate_output_variables(
    &self,
    entry_point: Option<&str>
) -> Result<Vec<ReflectInterfaceVariable>, &'static str>
[src]

pub fn enumerate_descriptor_bindings(
    &self,
    entry_point: Option<&str>
) -> Result<Vec<ReflectDescriptorBinding>, &'static str>
[src]

pub fn enumerate_descriptor_sets(
    &self,
    entry_point: Option<&str>
) -> Result<Vec<ReflectDescriptorSet>, &'static str>
[src]

pub fn enumerate_push_constant_blocks(
    &self,
    entry_point: Option<&str>
) -> Result<Vec<ReflectBlockVariable>, &'static str>
[src]

pub fn enumerate_entry_points(
    &self
) -> Result<Vec<ReflectEntryPoint>, &'static str>
[src]

pub fn get_entry_point_name(&self) -> String[src]

pub fn change_descriptor_binding_numbers(
    &mut self,
    binding: &ReflectDescriptorBinding,
    new_binding: u32,
    new_set: Option<u32>
) -> Result<(), &'static str>
[src]

pub fn change_descriptor_set_number(
    &mut self,
    set: &ReflectDescriptorSet,
    new_set: u32
) -> Result<(), &'static str>
[src]

pub fn change_input_variable_location(
    &mut self,
    variable: &ReflectInterfaceVariable,
    new_location: u32
) -> Result<(), &'static str>
[src]

pub fn change_output_variable_location(
    &mut self,
    variable: &ReflectInterfaceVariable,
    new_location: u32
) -> Result<(), &'static str>
[src]

Trait Implementations

impl Drop for ShaderModule[src]

impl Clone for ShaderModule[src]

impl Default for ShaderModule[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]