Enum shader_version::glsl::GLSL[][src]

pub enum GLSL {
    V1_10,
    V1_20,
    V1_30,
    V1_40,
    V1_50,
    V3_30,
    V4_00,
    V4_10,
    V4_20,
    V4_30,
    V4_40,
    V4_50,
}

For OpenGL version 3.3 and above, the GLSL version is the same as the OpenGL version.

Source: http://www.opengl.org/wiki/Core_Language_%28GLSL%29

Variants

V1_10
V1_20
V1_30
V1_40
V1_50
V3_30
V4_00
V4_10
V4_20
V4_30
V4_40
V4_50

Implementations

impl GLSL[src]

pub fn to_opengl(&self) -> OpenGL[src]

Gets OpenGL version associated with GLSL.

Trait Implementations

impl Clone for GLSL[src]

impl Copy for GLSL[src]

impl Debug for GLSL[src]

impl Eq for GLSL[src]

impl FromStr for GLSL[src]

type Err = ParseGLSLError

The associated error which can be returned from parsing.

impl Ord for GLSL[src]

impl PartialEq<GLSL> for GLSL[src]

impl PartialOrd<GLSL> for GLSL[src]

impl PickShader for GLSL[src]

impl StructuralEq for GLSL[src]

impl StructuralPartialEq for GLSL[src]

Auto Trait Implementations

impl RefUnwindSafe for GLSL

impl Send for GLSL

impl Sync for GLSL

impl Unpin for GLSL

impl UnwindSafe for GLSL

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.