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(UncompressedFloatFormat)UncompressedIntegral(UncompressedIntFormat)UncompressedUnsigned(UncompressedUintFormat)Srgb(SrgbFormat)CompressedFormat(CompressedFormat)CompressedSrgbFormat(CompressedSrgbFormat)DepthFormat(DepthFormat)StencilFormat(StencilFormat)DepthStencilFormat(DepthStencilFormat)Methods
impl TextureFormat[src]
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
impl Eq for TextureFormat[src]
impl PartialEq for TextureFormat[src]
fn eq(&self, __arg_0: &TextureFormat) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TextureFormat) -> bool
This method tests for !=.
impl Hash for TextureFormat[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Copy for TextureFormat[src]
impl Clone for TextureFormat[src]
fn clone(&self) -> TextureFormat
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