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

pub enum GLSL {
    _1_10,
    _1_20,
    _1_30,
    _1_40,
    _1_50,
    _3_30,
    _4_00,
    _4_10,
    _4_20,
    _4_30,
    _4_40,
    _4_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

_1_10
_1_20
_1_30
_1_40
_1_50
_3_30
_4_00
_4_10
_4_20
_4_30
_4_40
_4_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

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

impl Copy for GLSL