Struct spirv_reflect::ShaderModule
source · pub struct ShaderModule { /* private fields */ }
Implementations
sourceimpl ShaderModule
impl ShaderModule
pub fn load_u8_data(spv_data: &[u8]) -> Result<ShaderModule, &str>
pub fn load_u32_data(spv_data: &[u32]) -> Result<ShaderModule, &str>
pub fn get_code_size(&self) -> usize
pub fn get_code_slice(&self) -> &[u32]
pub fn get_generator(&self) -> ReflectGenerator
pub fn get_shader_stage(&self) -> ReflectShaderStageFlags
pub fn get_source_language(&self) -> SourceLanguage
pub fn get_source_language_version(&self) -> u32
pub fn get_source_file(&self) -> String
pub fn get_source_text(&self) -> String
pub fn get_spirv_execution_model(&self) -> ExecutionModel
pub fn enumerate_input_variables(
&self,
entry_point: Option<&str>
) -> Result<Vec<ReflectInterfaceVariable>, &str>
pub fn enumerate_output_variables(
&self,
entry_point: Option<&str>
) -> Result<Vec<ReflectInterfaceVariable>, &str>
pub fn enumerate_descriptor_bindings(
&self,
entry_point: Option<&str>
) -> Result<Vec<ReflectDescriptorBinding>, &str>
pub fn enumerate_descriptor_sets(
&self,
entry_point: Option<&str>
) -> Result<Vec<ReflectDescriptorSet>, &str>
pub fn enumerate_push_constant_blocks(
&self,
entry_point: Option<&str>
) -> Result<Vec<ReflectBlockVariable>, &str>
pub fn change_descriptor_binding_numbers(
&mut self,
binding: ReflectDescriptorBinding,
new_binding: u32,
new_set: Option<u32>
) -> Result<(), &str>
pub fn change_descriptor_set_number(
&mut self,
set: ReflectDescriptorSet,
new_set: u32
) -> Result<(), &str>
pub fn change_input_variable_location(
&mut self,
variable: &ReflectInterfaceVariable,
new_location: u32
) -> Result<(), &str>
pub fn change_output_variable_location(
&mut self,
variable: &ReflectInterfaceVariable,
new_location: u32
) -> Result<(), &str>
pub fn get_entry_point_name(&self) -> String
pub fn enumerate_entry_points(&self) -> Result<Vec<ReflectEntryPoint>, &str>
Trait Implementations
sourceimpl Clone for ShaderModule
impl Clone for ShaderModule
sourcefn clone(&self) -> ShaderModule
fn clone(&self) -> ShaderModule
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for ShaderModule
impl Default for ShaderModule
sourcefn default() -> ShaderModule
fn default() -> ShaderModule
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ShaderModule
impl !Send for ShaderModule
impl !Sync for ShaderModule
impl Unpin for ShaderModule
impl UnwindSafe for ShaderModule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more