Enum sierra::Format[][src]

pub enum Format {
    R8Unorm,
    R8Snorm,
    R8Uscaled,
    R8Sscaled,
    R8Uint,
    R8Sint,
    R8Srgb,
    RG8Unorm,
    RG8Snorm,
    RG8Uscaled,
    RG8Sscaled,
    RG8Uint,
    RG8Sint,
    RG8Srgb,
    RGB8Unorm,
    RGB8Snorm,
    RGB8Uscaled,
    RGB8Sscaled,
    RGB8Uint,
    RGB8Sint,
    RGB8Srgb,
    BGR8Unorm,
    BGR8Snorm,
    BGR8Uscaled,
    BGR8Sscaled,
    BGR8Uint,
    BGR8Sint,
    BGR8Srgb,
    RGBA8Unorm,
    RGBA8Snorm,
    RGBA8Uscaled,
    RGBA8Sscaled,
    RGBA8Uint,
    RGBA8Sint,
    RGBA8Srgb,
    BGRA8Unorm,
    BGRA8Snorm,
    BGRA8Uscaled,
    BGRA8Sscaled,
    BGRA8Uint,
    BGRA8Sint,
    BGRA8Srgb,
    R16Unorm,
    R16Snorm,
    R16Uscaled,
    R16Sscaled,
    R16Uint,
    R16Sint,
    R16Sfloat,
    RG16Unorm,
    RG16Snorm,
    RG16Uscaled,
    RG16Sscaled,
    RG16Uint,
    RG16Sint,
    RG16Sfloat,
    RGB16Unorm,
    RGB16Snorm,
    RGB16Uscaled,
    RGB16Sscaled,
    RGB16Uint,
    RGB16Sint,
    RGB16Sfloat,
    RGBA16Unorm,
    RGBA16Snorm,
    RGBA16Uscaled,
    RGBA16Sscaled,
    RGBA16Uint,
    RGBA16Sint,
    RGBA16Sfloat,
    R32Uint,
    R32Sint,
    R32Sfloat,
    RG32Uint,
    RG32Sint,
    RG32Sfloat,
    RGB32Uint,
    RGB32Sint,
    RGB32Sfloat,
    RGBA32Uint,
    RGBA32Sint,
    RGBA32Sfloat,
    R64Uint,
    R64Sint,
    R64Sfloat,
    RG64Uint,
    RG64Sint,
    RG64Sfloat,
    RGB64Uint,
    RGB64Sint,
    RGB64Sfloat,
    RGBA64Uint,
    RGBA64Sint,
    RGBA64Sfloat,
    D16Unorm,
    D32Sfloat,
    S8Uint,
    D16UnormS8Uint,
    D24UnormS8Uint,
    D32SfloatS8Uint,
}

Texel format. Images can have different texel formats. Some of which are color or depth and/or stencil. Format defines components, number of bits, layout and representation of texels.

Variants

R8Unorm
R8Snorm
R8Uscaled
R8Sscaled
R8Uint
R8Sint
R8Srgb
RG8Unorm
RG8Snorm
RG8Uscaled
RG8Sscaled
RG8Uint
RG8Sint
RG8Srgb
RGB8Unorm
RGB8Snorm
RGB8Uscaled
RGB8Sscaled
RGB8Uint
RGB8Sint
RGB8Srgb
BGR8Unorm
BGR8Snorm
BGR8Uscaled
BGR8Sscaled
BGR8Uint
BGR8Sint
BGR8Srgb
RGBA8Unorm
RGBA8Snorm
RGBA8Uscaled
RGBA8Sscaled
RGBA8Uint
RGBA8Sint
RGBA8Srgb
BGRA8Unorm
BGRA8Snorm
BGRA8Uscaled
BGRA8Sscaled
BGRA8Uint
BGRA8Sint
BGRA8Srgb
R16Unorm
R16Snorm
R16Uscaled
R16Sscaled
R16Uint
R16Sint
R16Sfloat
RG16Unorm
RG16Snorm
RG16Uscaled
RG16Sscaled
RG16Uint
RG16Sint
RG16Sfloat
RGB16Unorm
RGB16Snorm
RGB16Uscaled
RGB16Sscaled
RGB16Uint
RGB16Sint
RGB16Sfloat
RGBA16Unorm
RGBA16Snorm
RGBA16Uscaled
RGBA16Sscaled
RGBA16Uint
RGBA16Sint
RGBA16Sfloat
R32Uint
R32Sint
R32Sfloat
RG32Uint
RG32Sint
RG32Sfloat
RGB32Uint
RGB32Sint
RGB32Sfloat
RGBA32Uint
RGBA32Sint
RGBA32Sfloat
R64Uint
R64Sint
R64Sfloat
RG64Uint
RG64Sint
RG64Sfloat
RGB64Uint
RGB64Sint
RGB64Sfloat
RGBA64Uint
RGBA64Sint
RGBA64Sfloat
D16Unorm
D32Sfloat
S8Uint
D16UnormS8Uint
D24UnormS8Uint
D32SfloatS8Uint

Implementations

impl Format[src]

pub fn aspect_flags(&self) -> AspectFlags[src]

pub fn is_color(&self) -> bool[src]

pub fn color_type(&self) -> Option<FormatType>[src]

pub fn is_depth(&self) -> bool[src]

pub fn is_stencil(&self) -> bool[src]

pub fn description(&self) -> FormatDescription[src]

Trait Implementations

impl Clone for Format[src]

impl Copy for Format[src]

impl Debug for Format[src]

impl Eq for Format[src]

impl Hash for Format[src]

impl PartialEq<Format> for Format[src]

impl StructuralEq for Format[src]

impl StructuralPartialEq for Format[src]

Auto Trait Implementations

impl RefUnwindSafe for Format

impl Send for Format

impl Sync for Format

impl Unpin for Format

impl UnwindSafe for Format

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.