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

Derived Implementations

impl Eq for BufferTextureType

impl PartialEq for BufferTextureType

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

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

impl Debug for BufferTextureType

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

impl Clone for BufferTextureType

fn clone(&self) -> BufferTextureType

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

impl Copy for BufferTextureType