Skip to main content

TexSize

Trait TexSize 

Source
pub trait TexSize: TrivialBound {
    const TYPE: GLenum;
    const SIZE: usize;
}

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl TexSize for RED

Source§

const TYPE: GLenum = gl::RED

Source§

const SIZE: usize = 1

Source§

impl TexSize for RG

Source§

const TYPE: GLenum = gl::RG

Source§

const SIZE: usize = 2

Source§

impl TexSize for RGB

Source§

const TYPE: GLenum = gl::RGB

Source§

const SIZE: usize = 3

Source§

impl TexSize for RGBA

Source§

const TYPE: GLenum = gl::RGBA

Source§

const SIZE: usize = 4