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