Enum glium::texture::DepthFormat [] [src]

pub enum DepthFormat {
    I16,
    I24,
    I32,
    F32,
}

List of formats available for depth textures.

I16, I24 and I32 are still treated as if they were floating points. Only the internal representation is integral.

Variants

I16
I24
I32

May not be supported by all hardware.

F32

Methods

impl DepthFormat

fn get_formats_list() -> Vec<DepthFormat>

Returns a list of all the possible values of this enumeration.

fn to_texture_format(self) -> TextureFormat

Turns this format into a more generic TextureFormat.

fn is_supported<C>(&self, context: &C) -> bool where C: CapabilitiesSource

Returns true if this format is supported by the backend.

Trait Implementations

Derived Implementations

impl Eq for DepthFormat

impl PartialEq for DepthFormat

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

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

impl Hash for DepthFormat

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Copy for DepthFormat

impl Clone for DepthFormat

fn clone(&self) -> DepthFormat

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

impl Debug for DepthFormat

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