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

Methods

impl StencilFormat
[src]

Important traits for Vec<u8>

Returns a list of all the possible values of this enumeration.

Turns this format into a more generic TextureFormat.

Returns true if this format is supported by the backend for textures.

Returns true if this format is supported by the backend for renderbuffers.

Trait Implementations

impl Hash for StencilFormat
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for StencilFormat
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StencilFormat
[src]

Formats the value using the given formatter. Read more

impl Copy for StencilFormat
[src]

impl Eq for StencilFormat
[src]

impl PartialEq<StencilFormat> for StencilFormat
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations