Enum 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

fn get_formats_list() -> Vec<StencilFormat>

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_for_textures<C>(&self, context: &C) -> bool where C: CapabilitiesSource

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

fn is_supported_for_renderbuffers<C>(&self, context: &C) -> bool where C: CapabilitiesSource

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

Trait Implementations

Derived Implementations

impl Eq for StencilFormat

impl PartialEq for StencilFormat

fn eq(&self, __arg_0: &StencilFormat) -> bool

fn ne(&self, __arg_0: &StencilFormat) -> bool

impl Hash for StencilFormat

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Copy for StencilFormat

impl Clone for StencilFormat

fn clone(&self) -> StencilFormat

fn clone_from(&mut self, source: &Self)

impl Debug for StencilFormat

fn fmt(&self, __arg_0: &mut Formatter) -> Result