Enum nannou::ui::backend::glium::glium::texture::StencilFormat [−][src]
pub enum StencilFormat { I1, I4, I8, I16, }
List of formats available for stencil textures.
You are strongly advised to only use I8
.
Stencil textures are a very recent OpenGL feature that may not be supported everywhere.
Only I8
is supported for textures. All the other formats can only be used with renderbuffers.
Variants
I1
I4
I8
I16
Methods
impl StencilFormat
[src]
impl StencilFormat
pub fn get_formats_list() -> Vec<StencilFormat>
[src]
pub fn get_formats_list() -> Vec<StencilFormat>
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_for_textures<C>(&self, context: &C) -> bool where
C: CapabilitiesSource + ?Sized,
[src]
pub fn is_supported_for_textures<C>(&self, context: &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, context: &C) -> bool where
C: CapabilitiesSource + ?Sized,
[src]
pub fn is_supported_for_renderbuffers<C>(&self, context: &C) -> bool where
C: CapabilitiesSource + ?Sized,
Returns true if this format is supported by the backend for renderbuffers.
Trait Implementations
impl Hash for StencilFormat
[src]
impl Hash for StencilFormat
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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for StencilFormat
[src]
impl Clone for StencilFormat
fn clone(&self) -> StencilFormat
[src]
fn clone(&self) -> StencilFormat
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)
Performs copy-assignment from source
. Read more
impl Debug for StencilFormat
[src]
impl Debug for StencilFormat
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 StencilFormat
[src]
impl Copy for StencilFormat
impl Eq for StencilFormat
[src]
impl Eq for StencilFormat
impl PartialEq<StencilFormat> for StencilFormat
[src]
impl PartialEq<StencilFormat> for StencilFormat
Auto Trait Implementations
impl Send for StencilFormat
impl Send for StencilFormat
impl Sync for StencilFormat
impl Sync for StencilFormat