pub(crate) unsafe fn destroy_all_shaders(&mut self) {
    for shader in self.loaded_shaders.iter() {
      if let Err(err) = self.shader_loader.delete_shader(shader.1.shader_handle) {
        warn!(
          "Shader not destroyed, maybe it was already? Error: {:?}",
          err
        );
      }
    }

    self.loaded_shaders.clear();
  }
/// Destroys all the shaders.  Unsafe because any outstanding handles will not
/// result in errors when they drop, so they must be forgotten.
Destroys all the shaders.  Unsafe because any outstanding handles will not
result in errors when they drop, so they must be forgotten.
Destroys all the shaders . Unsafe because any outstanding handles will not result in errors when they drop so they must be forgotten .
pub(crate) unsafe fn destroy_all_shaders(&mut self) {
    for shader in self.loaded_shaders.iter() {
      if let Err(err) = self.shader_loader.delete_shader(shader.1.shader_handle) {
        warn!(
          "Shader not destroyed, maybe it was already? Error: {:?}",
          err
        );
      }
    }
    self.loaded_shaders.clear();
  }
pub ( crate ) unsafe fn destroy_all_shaders ( & mut self ) { for shader in self . loaded_shaders . iter ( ) { if let Err ( err ) = self . shader_loader . delete_shader ( shader . 1 . shader_handle ) { warn ! ( " " err ) ; } } self . loaded_shaders . clear ( ) ; }
Destroys all the shaders.
Destroys all the shaders .
&mut self
&mut self