Enum glium::texture::buffer_texture::BufferTextureType [] [src]

pub enum BufferTextureType {
    Float,
    Integral,
    Unsigned,
}

Type of a buffer texture.

Variants

Float

The texture will behave as if it contained floating-point data. It can be sampled with a samplerBuffer in your GLSL code.

If the buffer actually contains integer values, they will be normalized so that 0 is interpreted as 0.0 and the maximum possible value (for example 255 for u8s) is interpreted as 1.0.

Integral

The texture will behave as if it contained signed integral data. It can be sampled with a isamplerBuffer in your GLSL code.

Unsigned

The texture will behave as if it contained unsigned integral data. It can be sampled with a usamplerBuffer in your GLSL code.

Trait Implementations

impl Eq for BufferTextureType
[src]

impl PartialEq for BufferTextureType
[src]

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

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

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Debug for BufferTextureType
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for BufferTextureType
[src]

fn clone(&self) -> BufferTextureType

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for BufferTextureType
[src]