pub struct ShaderManager { /* private fields */ }Expand description
Shader manager
Implementations§
Source§impl ShaderManager
impl ShaderManager
Sourcepub fn initialize(&mut self, device: &Device) -> RendererResult<()>
pub fn initialize(&mut self, device: &Device) -> RendererResult<()>
Initialize shaders
Sourcepub fn shader_module(&self) -> Option<&ShaderModule>
pub fn shader_module(&self) -> Option<&ShaderModule>
Get the shader module
Sourcepub fn get_shader_module(&self) -> RendererResult<&ShaderModule>
pub fn get_shader_module(&self) -> RendererResult<&ShaderModule>
Get the shader module reference (with error handling)
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Check if shaders are initialized
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShaderManager
impl !RefUnwindSafe for ShaderManager
impl Send for ShaderManager
impl Sync for ShaderManager
impl Unpin for ShaderManager
impl UnsafeUnpin for ShaderManager
impl !UnwindSafe for ShaderManager
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