pub struct ShaderModule { /* private fields */ }
Implementations§
Source§impl ShaderModule
impl ShaderModule
pub fn load_u8_data(spv_data: &[u8]) -> Result<ShaderModule, &'static str>
pub fn load_u32_data(spv_data: &[u32]) -> Result<ShaderModule, &'static str>
pub fn get_code(&self) -> Vec<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>, &'static str>
pub fn enumerate_output_variables( &self, entry_point: Option<&str>, ) -> Result<Vec<ReflectInterfaceVariable>, &'static str>
pub fn enumerate_descriptor_bindings( &self, entry_point: Option<&str>, ) -> Result<Vec<ReflectDescriptorBinding>, &'static str>
pub fn enumerate_descriptor_sets( &self, entry_point: Option<&str>, ) -> Result<Vec<ReflectDescriptorSet>, &'static str>
pub fn enumerate_push_constant_blocks( &self, entry_point: Option<&str>, ) -> Result<Vec<ReflectBlockVariable>, &'static str>
pub fn enumerate_entry_points( &self, ) -> Result<Vec<ReflectEntryPoint>, &'static str>
pub fn get_entry_point_name(&self) -> String
pub fn change_descriptor_binding_numbers( &mut self, binding: &ReflectDescriptorBinding, new_binding: u32, new_set: Option<u32>, ) -> Result<(), &'static str>
pub fn change_descriptor_set_number( &mut self, set: &ReflectDescriptorSet, new_set: u32, ) -> Result<(), &'static str>
pub fn change_input_variable_location( &mut self, variable: &ReflectInterfaceVariable, new_location: u32, ) -> Result<(), &'static str>
pub fn change_output_variable_location( &mut self, variable: &ReflectInterfaceVariable, new_location: u32, ) -> Result<(), &'static str>
Trait Implementations§
Source§impl Clone for ShaderModule
impl Clone for ShaderModule
Source§fn clone(&self) -> ShaderModule
fn clone(&self) -> ShaderModule
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ShaderModule
impl Default for ShaderModule
Source§fn default() -> ShaderModule
fn default() -> ShaderModule
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShaderModule
impl RefUnwindSafe for ShaderModule
impl !Send for ShaderModule
impl !Sync for ShaderModule
impl Unpin for ShaderModule
impl UnwindSafe for ShaderModule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)