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

Methods

impl GLSL

fn to_opengl(&self) -> OpenGL

Gets OpenGL version associated with GLSL.

Trait Implementations

impl PickShader for GLSL

fn pick_shader<'a, S: ?Sized>(self, shaders: &Shaders<'a, Self, S>) -> Option<&'a S>

Derived Implementations

impl Ord for GLSL

fn cmp(&self, __arg_0: &GLSL) -> Ordering

impl Eq for GLSL

impl PartialOrd for GLSL

fn partial_cmp(&self, __arg_0: &GLSL) -> Option<Ordering>

fn lt(&self, __arg_0: &GLSL) -> bool

fn le(&self, __arg_0: &GLSL) -> bool

fn gt(&self, __arg_0: &GLSL) -> bool

fn ge(&self, __arg_0: &GLSL) -> bool

impl PartialEq for GLSL

fn eq(&self, __arg_0: &GLSL) -> bool

fn ne(&self, __arg_0: &GLSL) -> bool

impl Clone for GLSL

fn clone(&self) -> GLSL

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for GLSL