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.