[][src]Enum fna3h::SurfaceFormat

#[repr(u32)]pub enum SurfaceFormat {
    Color,
    Bgr565,
    Bgra5551,
    Bgra4444,
    Dxt1,
    Dxt3,
    Dxt5,
    NormalizedByte2,
    NormalizedByte4,
    Rgba1010102,
    Rg32,
    Rgba64,
    Alpha8,
    Single,
    Vector2,
    Vector4,
    HalfSingle,
    HalfVector2,
    HalfVector4,
    HdrBlendable,
    ColorBgraExt,
}

Texture or Renderbuffer pixel data format (memory layout of each pixel)

Variants

Color

Unsigned 32-bit ARGB pixel format for store 8 bits per channel

Bgr565

Unsigned 16-bit BGR pixel format for store 5 bits for blue, 6 bits for green, and 5 bits for red

Bgra5551

Unsigned 16-bit BGRA pixel format where 5 bits reserved for each color and last bit is reserved for alpha

Bgra4444

Unsigned 16-bit BGRA pixel format for store 4 bits per channel

Dxt1

DXT1. Texture format with compression. Surface dimensions must be a multiple 4

Dxt3

DXT3. Texture format with compression. Surface dimensions must be a multiple 4

Dxt5

DXT5. Texture format with compression. Surface dimensions must be a multiple 4

NormalizedByte2

Signed 16-bit bump-map format for store 8 bits for u and v data.

NormalizedByte4

Signed 16-bit bump-map format for store 8 bits per channel

Rgba1010102

Unsigned 32-bit RGBA pixel format for store 10 bits for each color and 2 bits for alpha

Rg32

Unsigned 32-bit RG pixel format using 16 bits per channel

Rgba64

Unsigned 64-bit RGBA pixel format using 16 bits per channel

Alpha8

Unsigned A 8-bit format for store 8 bits to alpha channel

Single

IEEE 32-bit R float format for store 32 bits to red channel

Vector2

IEEE 64-bit RG float format for store 32 bits per channel

Vector4

IEEE 128-bit RGBA float format for store 32 bits per channel

HalfSingle

Float 16-bit R format for store 16 bits to red channel

HalfVector2

Float 32-bit RG format for store 16 bits per channel

HalfVector4

Float 64-bit ARGB format for store 16 bits per channel

HdrBlendable

Float pixel format for high dynamic range data

ColorBgraExt

Unsigned 32-bit ABGR pixel format for store 8 bits per channel (XNA3)

Implementations

impl SurfaceFormat[src]

pub fn size(&self) -> usize[src]

Trait Implementations

impl Clone for SurfaceFormat[src]

impl Copy for SurfaceFormat[src]

impl Debug for SurfaceFormat[src]

impl Eq for SurfaceFormat[src]

impl FromPrimitive for SurfaceFormat[src]

impl Hash for SurfaceFormat[src]

impl PartialEq<SurfaceFormat> for SurfaceFormat[src]

impl StructuralEq for SurfaceFormat[src]

impl StructuralPartialEq for SurfaceFormat[src]

impl ToPrimitive for SurfaceFormat[src]

impl TryFrom<i16> for SurfaceFormat[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i32> for SurfaceFormat[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i64> for SurfaceFormat[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i8> for SurfaceFormat[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u16> for SurfaceFormat[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u32> for SurfaceFormat[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u64> for SurfaceFormat[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u8> for SurfaceFormat[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

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, 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.