pub enum GlShaderKind {
Vertex,
Fragment,
}Expand description
Which shader stage a GLSL source is compiled for.
WebGL identifies a shader by the raw VERTEX_SHADER /
FRAGMENT_SHADER enum rather than by a string, and the same raw
u32 is threaded through the GlProgram path.
This enum names the two stages so a caller cannot pass a meaningless
value and have the browser reject the compile later.
Variants§
Vertex
The per-vertex stage, which runs once for every vertex of every instance.
Fragment
The per-fragment stage, which runs once for every surviving fragment after rasterization.
Trait Implementations§
Source§impl Clone for GlShaderKind
impl Clone for GlShaderKind
impl Copy for GlShaderKind
Source§impl Debug for GlShaderKind
impl Debug for GlShaderKind
Source§impl Default for GlShaderKind
impl Default for GlShaderKind
impl Eq for GlShaderKind
Source§impl Hash for GlShaderKind
impl Hash for GlShaderKind
Source§impl PartialEq for GlShaderKind
impl PartialEq for GlShaderKind
impl StructuralPartialEq for GlShaderKind
Auto Trait Implementations§
impl Freeze for GlShaderKind
impl RefUnwindSafe for GlShaderKind
impl Send for GlShaderKind
impl Sync for GlShaderKind
impl Unpin for GlShaderKind
impl UnsafeUnpin for GlShaderKind
impl UnwindSafe for GlShaderKind
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