pub struct ShaderSet<B: Backend> { /* private fields */ }
Expand description
A ShaderSet
object represents a merged collection of ShaderStorage
structures, which reflects merged information for all shaders in the set.
Implementations§
Source§impl<B: Backend> ShaderSet<B>
impl<B: Backend> ShaderSet<B>
Sourcepub fn load(&mut self, factory: &Factory<B>) -> Result<&mut Self, ShaderError>
pub fn load(&mut self, factory: &Factory<B>) -> Result<&mut Self, ShaderError>
This function compiles and loads all shaders into B::ShaderModule objects which must be dropped later with dispose
Sourcepub fn raw<'a>(&'a self) -> Result<GraphicsShaderSet<'a, B>, ShaderError>
pub fn raw<'a>(&'a self) -> Result<GraphicsShaderSet<'a, B>, ShaderError>
Returns the GraphicsShaderSet
structure to provide all the runtime information needed to use the shaders in this set in rendy_core::hal.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for ShaderSet<B>
impl<B> RefUnwindSafe for ShaderSet<B>
impl<B> Send for ShaderSet<B>
impl<B> Sync for ShaderSet<B>
impl<B> Unpin for ShaderSet<B>
impl<B> UnwindSafe for ShaderSet<B>
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