# [−][src]Struct spirv_reflect::ShaderModule

    pub struct ShaderModule { /* fields omitted */ }

## Methods

### `impl ShaderModule`[src]

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

#### `pub fn load_u32_data(spv_data: &[u32]) -> Result<ShaderModule, &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>, &str>`[src]

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

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

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

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

#### `pub fn enumerate_entry_points(&self) -> Result<Vec<ReflectEntryPoint>, &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<(), &str>`[src]

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

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

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

## Trait Implementations

### `impl Drop for ShaderModule`[src]

#### `fn drop(&mut self)`[src]

Executes the destructor for this type. Read more

### `impl Default for ShaderModule`[src]

#### `fn default() -> ShaderModule`[src]

Returns the "default value" for a type. Read more

### `impl Clone for ShaderModule`[src]

#### `fn clone(&self) -> ShaderModule`[src]

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`1.0.0[src]

Performs copy-assignment from `source`. Read more

## Auto Trait Implementations

### `impl !Send for ShaderModule`

### `impl Unpin for ShaderModule`

### `impl !Sync for ShaderModule`

### `impl UnwindSafe for ShaderModule`

### `impl RefUnwindSafe for ShaderModule`

## Blanket Implementations

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

#### `type Owned = T`

The resulting type after obtaining ownership.

#### `fn to_owned(&self) -> T`[src]

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

#### `fn clone_into(&self, target: &mut T)`[src]

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

recently added

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

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

#### `fn into(self) -> U`[src]

Performs the conversion.

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

#### `fn from(t: T) -> T`[src]

Performs the conversion.

### `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.

#### `fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>`[src]

Performs the conversion.

### `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.

#### `fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>`[src]

Performs the conversion.

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

#### `fn borrow_mut(&mut self) -> &mut T`[src]

Mutably borrows from an owned value. Read more

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

#### `fn borrow(&self) -> &T`[src]

Immutably borrows from an owned value. Read more

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

#### `fn type_id(&self) -> TypeId`[src]

Gets the `TypeId` of `self`. Read more

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)