Enum glium::texture::TextureFormat [] [src]

pub enum TextureFormat {
    UncompressedFloat(UncompressedFloatFormat),
    UncompressedIntegral(UncompressedIntFormat),
    UncompressedUnsigned(UncompressedUintFormat),
    Srgb(SrgbFormat),
    CompressedFormat(CompressedFormat),
    CompressedSrgbFormat(CompressedSrgbFormat),
    DepthFormat(DepthFormat),
    StencilFormat(StencilFormat),
    DepthStencilFormat(DepthStencilFormat),
}

Format of the internal representation of a texture.

Variants

UncompressedFloat
UncompressedIntegral
UncompressedUnsigned
Srgb
CompressedFormat
CompressedSrgbFormat
DepthFormat
StencilFormat
DepthStencilFormat

Methods

impl TextureFormat

fn get_formats_list() -> Vec<TextureFormat>

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

fn is_supported_for_textures<C>(&self, c: &C) -> bool where C: CapabilitiesSource

Returns true if this format is supported by the backend for textures.

fn is_supported_for_renderbuffers<C>(&self, c: &C) -> bool where C: CapabilitiesSource

Returns true if this format is supported by the backend for renderbuffers.

fn is_renderable<C>(&self, c: &C) -> bool where C: CapabilitiesSource

Returns true if the format is color-renderable, depth-renderable, depth-stencil-renderable or stencil-renderable.

Trait Implementations

Derived Implementations

impl Eq for TextureFormat

impl PartialEq for TextureFormat

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

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

impl Hash for TextureFormat

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

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

impl Copy for TextureFormat

impl Clone for TextureFormat

fn clone(&self) -> TextureFormat

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

impl Debug for TextureFormat

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