pub struct ShaderLoader {
    shaders: Vec<LazilyCompiledShader>,
}Fields§
§shaders: Vec<LazilyCompiledShader>Implementations§
Source§impl ShaderLoader
 
impl ShaderLoader
pub fn new() -> Self
pub fn create_shader( &mut self, kind: ShaderKind, name: &'static str, unsorted_features: &[&'static str], shader_list: &ShaderFeatures, ) -> Result<ShaderHandle, ShaderError>
pub fn precache( &mut self, shader: ShaderHandle, device: &mut Device, flags: ShaderPrecacheFlags, ) -> Result<(), ShaderError>
pub fn all_handles(&self) -> Vec<ShaderHandle>
pub fn get(&mut self, handle: ShaderHandle) -> &mut LazilyCompiledShader
pub fn deinit(self, device: &mut Device)
Trait Implementations§
Source§impl Default for ShaderLoader
 
impl Default for ShaderLoader
Source§fn default() -> ShaderLoader
 
fn default() -> ShaderLoader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShaderLoader
impl RefUnwindSafe for ShaderLoader
impl !Send for ShaderLoader
impl !Sync for ShaderLoader
impl Unpin for ShaderLoader
impl UnwindSafe for ShaderLoader
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> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more