Enum 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
U8U8U8U8U8U8U8Methods
impl SrgbFormat[src]
fn get_formats_list() -> Vec<SrgbFormat>
Returns a list of all the possible values of this enumeration.
fn to_texture_format(self) -> TextureFormat
Turns this format into a more generic TextureFormat.
fn is_supported<C>(&self, context: &C) -> bool where C: CapabilitiesSource
Returns true if this format is supported by the backend.
fn is_color_renderable<C>(&self, context: &C) -> bool where C: CapabilitiesSource
Returns true if a texture or renderbuffer with this format can be used as a framebuffer attachment.
Trait Implementations
impl Eq for SrgbFormat[src]
impl PartialEq for SrgbFormat[src]
fn eq(&self, __arg_0: &SrgbFormat) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Hash for SrgbFormat[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 SrgbFormat[src]
impl Clone for SrgbFormat[src]
fn clone(&self) -> SrgbFormat
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