Enum uni_gl::ShaderKind
source · [−]pub enum ShaderKind {
Fragment,
Vertex,
}
Expand description
Constants passed to WebGLRenderingContext.createShader()
Variants
Fragment
Passed to createShader to define a fragment shader.
Vertex
Passed to createShader to define a vertex shader
Trait Implementations
sourceimpl Clone for ShaderKind
impl Clone for ShaderKind
sourcefn clone(&self) -> ShaderKind
fn clone(&self) -> ShaderKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ShaderKind
impl Debug for ShaderKind
impl Copy for ShaderKind
Auto Trait Implementations
impl RefUnwindSafe for ShaderKind
impl Send for ShaderKind
impl Sync for ShaderKind
impl Unpin for ShaderKind
impl UnwindSafe for ShaderKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more