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]
pub fn get_formats_list() -> Vec<TextureFormat>
[src]
Returns a list of all the possible values of this enumeration.
pub fn is_supported_for_textures<C: ?Sized>(&self, c: &C) -> bool where
C: CapabilitiesSource,
[src]
C: CapabilitiesSource,
Returns true if this format is supported by the backend for textures.
pub fn is_supported_for_renderbuffers<C: ?Sized>(&self, c: &C) -> bool where
C: CapabilitiesSource,
[src]
C: CapabilitiesSource,
Returns true if this format is supported by the backend for renderbuffers.
pub fn is_renderable<C: ?Sized>(&self, c: &C) -> bool where
C: CapabilitiesSource,
[src]
C: CapabilitiesSource,
Returns true if the format is color-renderable, depth-renderable, depth-stencil-renderable or stencil-renderable.
Trait Implementations
impl Debug for TextureFormat
[src]
impl Clone for TextureFormat
[src]
fn clone(&self) -> TextureFormat
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for TextureFormat
[src]
impl Hash for TextureFormat
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for TextureFormat
[src]
fn eq(&self, __arg_0: &TextureFormat) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TextureFormat) -> bool
[src]
This method tests for !=
.