fn destroy_shader(&mut self, inner_key: DefaultKey) -> SarektResult<()> {
    let shader = self.loaded_shaders.remove(inner_key);
    if shader.is_none() {
      return Err(SarektError::UnknownShader);
    }
    self
      .shader_loader
      .delete_shader(shader.unwrap().shader_handle)?;
    Ok(())
  }
/// Using the handle, destroy the shader from the backend.
Using the handle, destroy the shader from the backend.
Using the handle destroy the shader from the backend .
fn destroy_shader(&mut self, inner_key: DefaultKey) -> SarektResult<()> {
    let shader = self.loaded_shaders.remove(inner_key);
    if shader.is_none() {
      return Err(SarektError::UnknownShader);
    }
    self
      .shader_loader
      .delete_shader(shader.unwrap().shader_handle)?;
    Ok(())
  }
fn destroy_shader ( & mut self , inner_key : DefaultKey ) -> SarektResult < ( ) > { let shader = self . loaded_shaders . remove ( inner_key ) ; if shader . is_none ( ) { return Err ( SarektError :: UnknownShader ) ; } self . shader_loader . delete_shader ( shader . unwrap ( ) . shader_handle ) ? ; Ok ( ( ) ) }
Using the handle, destroy the shader from the backend.
Using the handle destroy the shader from the backend .
&mut self
inner_key
DefaultKey
&mut self
inner_key
DefaultKey