pub struct Shader { /* private fields */ }Implementations§
Source§impl Shader
impl Shader
Sourcepub fn open(path: &str, stage: ShaderStage) -> GraphicsResult<Self>
pub fn open(path: &str, stage: ShaderStage) -> GraphicsResult<Self>
Opens shader with path and specified stage
let shader = Shader::open(
"shader.vert.spv",
ShaderStage::Vertex,
).unwrap()Auto Trait Implementations§
impl Freeze for Shader
impl RefUnwindSafe for Shader
impl Send for Shader
impl Sync for Shader
impl Unpin for Shader
impl UnwindSafe for Shader
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