pub struct Shader { /* private fields */ }Implementations§
Source§impl Shader
impl Shader
Sourcepub fn from_words(words: &[u32], stage: ShaderStage) -> GraphicsResult<Self>
pub fn from_words(words: &[u32], stage: ShaderStage) -> GraphicsResult<Self>
Creates new shader from words and specified stage
let shader = Shader::from_words(words, ShaderStage::Vertex).unwrap()Sourcepub fn from_bytes(bytes: &[u8], stage: ShaderStage) -> GraphicsResult<Self>
pub fn from_bytes(bytes: &[u8], stage: ShaderStage) -> GraphicsResult<Self>
Creates new shader from bytes and specified stage
let shader = Shader::from_bytes(bytes, 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