Enum glitter::shader::ShaderType [] [src]

pub enum ShaderType {
    VertexShader,
    FragmentShader,
}

The possible types of shader objects.

Variants

A shader that is used for processing per-vertex data.

A shader that is used for processing per-fragment (per-pixel) data.

Methods

impl ShaderType
[src]

[src]

Convert from a raw OpenGL integer value to an enum variant. Returns an error if the value is not a valid enum variant.

[src]

Return the OpenGL integer value for a given enum variant.

Trait Implementations

impl Debug for ShaderType
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for ShaderType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ShaderType
[src]

impl PartialEq for ShaderType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for ShaderType
[src]

impl Hash for ShaderType
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more