pub struct ShaderMetaRegistry { /* private fields */ }Expand description
Registry mapping shader names to their ShaderMetadata.
Implementations§
Source§impl ShaderMetaRegistry
impl ShaderMetaRegistry
Sourcepub fn register(&mut self, name: &str, meta: ShaderMetadata)
pub fn register(&mut self, name: &str, meta: ShaderMetadata)
Register a shader under name.
Sourcepub fn lookup(&self, name: &str) -> Option<&ShaderMetadata>
pub fn lookup(&self, name: &str) -> Option<&ShaderMetadata>
Look up a shader by name.
Trait Implementations§
Source§impl Debug for ShaderMetaRegistry
impl Debug for ShaderMetaRegistry
Source§impl Default for ShaderMetaRegistry
impl Default for ShaderMetaRegistry
Source§fn default() -> ShaderMetaRegistry
fn default() -> ShaderMetaRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShaderMetaRegistry
impl RefUnwindSafe for ShaderMetaRegistry
impl Send for ShaderMetaRegistry
impl Sync for ShaderMetaRegistry
impl Unpin for ShaderMetaRegistry
impl UnsafeUnpin for ShaderMetaRegistry
impl UnwindSafe for ShaderMetaRegistry
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