Enum nannou::ui::backend::glium::glium::texture::DepthFormat [−][src]
pub enum DepthFormat { I16, I24, I32, F32, }
List of formats available for depth textures.
I16
, I24
and I32
are still treated as if they were floating points.
Only the internal representation is integral.
Variants
I16
I24
I32
May not be supported by all hardware.
F32
Methods
impl DepthFormat
[src]
impl DepthFormat
pub fn get_formats_list() -> Vec<DepthFormat>
[src]
pub fn get_formats_list() -> Vec<DepthFormat>
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.
Trait Implementations
impl Hash for DepthFormat
[src]
impl Hash for DepthFormat
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 DepthFormat
[src]
impl Clone for DepthFormat
fn clone(&self) -> DepthFormat
[src]
fn clone(&self) -> DepthFormat
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 DepthFormat
[src]
impl Debug for DepthFormat
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 DepthFormat
[src]
impl Copy for DepthFormat
impl Eq for DepthFormat
[src]
impl Eq for DepthFormat
impl PartialEq<DepthFormat> for DepthFormat
[src]
impl PartialEq<DepthFormat> for DepthFormat
Auto Trait Implementations
impl Send for DepthFormat
impl Send for DepthFormat
impl Sync for DepthFormat
impl Sync for DepthFormat