Enum nannou::ui::backend::glium::glium::texture::SrgbFormat [−][src]
pub enum SrgbFormat { U8U8U8, U8U8U8U8, }
List of uncompressed pixel formats that contain floating-point data in the sRGB color space.
Variants
U8U8U8
U8U8U8U8
Methods
impl SrgbFormat
[src]
impl SrgbFormat
pub fn get_formats_list() -> Vec<SrgbFormat>
[src]
pub fn get_formats_list() -> Vec<SrgbFormat>
Returns a list of all the possible values of this enumeration.
pub fn to_texture_format(self) -> TextureFormat
[src]
pub fn to_texture_format(self) -> TextureFormat
Turns this format into a more generic TextureFormat
.
pub fn is_supported<C>(&self, context: &C) -> bool where
C: CapabilitiesSource + ?Sized,
[src]
pub fn is_supported<C>(&self, context: &C) -> bool where
C: CapabilitiesSource + ?Sized,
Returns true if this format is supported by the backend.
pub fn is_color_renderable<C>(&self, context: &C) -> bool where
C: CapabilitiesSource + ?Sized,
[src]
pub fn is_color_renderable<C>(&self, context: &C) -> bool where
C: CapabilitiesSource + ?Sized,
Returns true if a texture or renderbuffer with this format can be used as a framebuffer attachment.
Trait Implementations
impl Hash for SrgbFormat
[src]
impl Hash for SrgbFormat
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 SrgbFormat
[src]
impl Clone for SrgbFormat
fn clone(&self) -> SrgbFormat
[src]
fn clone(&self) -> SrgbFormat
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 SrgbFormat
[src]
impl Debug for SrgbFormat
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 SrgbFormat
[src]
impl Copy for SrgbFormat
impl Eq for SrgbFormat
[src]
impl Eq for SrgbFormat
impl PartialEq<SrgbFormat> for SrgbFormat
[src]
impl PartialEq<SrgbFormat> for SrgbFormat
Auto Trait Implementations
impl Send for SrgbFormat
impl Send for SrgbFormat
impl Sync for SrgbFormat
impl Sync for SrgbFormat