[][src]Struct gli_rs::Format

#[repr(transparent)]
pub struct Format(_);

Texture data format.

Methods

impl Format[src]

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

Evaluate whether a format value is value or not.

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

Evaluate whether a format is compressed with an S3TC algorithm.

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

Evaluate whether a format is compressed with an S3TC algorithm.

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

Evaluate whether a format stores sRGB color space values.

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

Evaluate whether a format is unsigned.

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

Evaluate whether a format is signed.

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

Evaluate whether the format is an integer format.

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

Evaluate whether the format is a signed integer format.

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

Evaluate whether the format is an unsigned integer format.

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

Evaluate whether the format is an float format.

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

Evaluate whether the format is normalized.

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

Evaluate whether the format is an unsigned normalized format.

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

Evaluate whether the format is a signed normalized format.

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

Evaluate whether the format is packed.

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

Evaluate whether the format is a depth format.

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

Evaluate whether the format has a stencil component.

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

Evaluate whether the format has depth and stencil components.

impl Format[src]

pub const UNDEFINED: Format[src]

pub const FIRST: Format[src]

pub const RG4_UNORM_PACK8: Format[src]

pub const RGBA4_UNORM_PACK16: Format[src]

pub const BGRA4_UNORM_PACK16: Format[src]

pub const R5G6B5_UNORM_PACK16: Format[src]

pub const B5G6R5_UNORM_PACK16: Format[src]

pub const RGB5A1_UNORM_PACK16: Format[src]

pub const BGR5A1_UNORM_PACK16: Format[src]

pub const A1RGB5_UNORM_PACK16: Format[src]

pub const R8_UNORM_PACK8: Format[src]

pub const R8_SNORM_PACK8: Format[src]

pub const R8_USCALED_PACK8: Format[src]

pub const R8_SSCALED_PACK8: Format[src]

pub const R8_UINT_PACK8: Format[src]

pub const R8_SINT_PACK8: Format[src]

pub const R8_SRGB_PACK8: Format[src]

pub const RG8_UNORM_PACK8: Format[src]

pub const RG8_SNORM_PACK8: Format[src]

pub const RG8_USCALED_PACK8: Format[src]

pub const RG8_SSCALED_PACK8: Format[src]

pub const RG8_UINT_PACK8: Format[src]

pub const RG8_SINT_PACK8: Format[src]

pub const RG8_SRGB_PACK8: Format[src]

pub const RGB8_UNORM_PACK8: Format[src]

pub const RGB8_SNORM_PACK8: Format[src]

pub const RGB8_USCALED_PACK8: Format[src]

pub const RGB8_SSCALED_PACK8: Format[src]

pub const RGB8_UINT_PACK8: Format[src]

pub const RGB8_SINT_PACK8: Format[src]

pub const RGB8_SRGB_PACK8: Format[src]

pub const BGR8_UNORM_PACK8: Format[src]

pub const BGR8_SNORM_PACK8: Format[src]

pub const BGR8_USCALED_PACK8: Format[src]

pub const BGR8_SSCALED_PACK8: Format[src]

pub const BGR8_UINT_PACK8: Format[src]

pub const BGR8_SINT_PACK8: Format[src]

pub const BGR8_SRGB_PACK8: Format[src]

pub const RGBA8_UNORM_PACK8: Format[src]

pub const RGBA8_SNORM_PACK8: Format[src]

pub const RGBA8_USCALED_PACK8: Format[src]

pub const RGBA8_SSCALED_PACK8: Format[src]

pub const RGBA8_UINT_PACK8: Format[src]

pub const RGBA8_SINT_PACK8: Format[src]

pub const RGBA8_SRGB_PACK8: Format[src]

pub const BGRA8_UNORM_PACK8: Format[src]

pub const BGRA8_SNORM_PACK8: Format[src]

pub const BGRA8_USCALED_PACK8: Format[src]

pub const BGRA8_SSCALED_PACK8: Format[src]

pub const BGRA8_UINT_PACK8: Format[src]

pub const BGRA8_SINT_PACK8: Format[src]

pub const BGRA8_SRGB_PACK8: Format[src]

pub const RGBA8_UNORM_PACK32: Format[src]

pub const RGBA8_SNORM_PACK32: Format[src]

pub const RGBA8_USCALED_PACK32: Format[src]

pub const RGBA8_SSCALED_PACK32: Format[src]

pub const RGBA8_UINT_PACK32: Format[src]

pub const RGBA8_SINT_PACK32: Format[src]

pub const RGBA8_SRGB_PACK32: Format[src]

pub const RGB10A2_UNORM_PACK32: Format[src]

pub const RGB10A2_SNORM_PACK32: Format[src]

pub const RGB10A2_USCALED_PACK32: Format[src]

pub const RGB10A2_SSCALED_PACK32: Format[src]

pub const RGB10A2_UINT_PACK32: Format[src]

pub const RGB10A2_SINT_PACK32: Format[src]

pub const BGR10A2_UNORM_PACK32: Format[src]

pub const BGR10A2_SNORM_PACK32: Format[src]

pub const BGR10A2_USCALED_PACK32: Format[src]

pub const BGR10A2_SSCALED_PACK32: Format[src]

pub const BGR10A2_UINT_PACK32: Format[src]

pub const BGR10A2_SINT_PACK32: Format[src]

pub const R16_UNORM_PACK16: Format[src]

pub const R16_SNORM_PACK16: Format[src]

pub const R16_USCALED_PACK16: Format[src]

pub const R16_SSCALED_PACK16: Format[src]

pub const R16_UINT_PACK16: Format[src]

pub const R16_SINT_PACK16: Format[src]

pub const R16_SFLOAT_PACK16: Format[src]

pub const RG16_UNORM_PACK16: Format[src]

pub const RG16_SNORM_PACK16: Format[src]

pub const RG16_USCALED_PACK16: Format[src]

pub const RG16_SSCALED_PACK16: Format[src]

pub const RG16_UINT_PACK16: Format[src]

pub const RG16_SINT_PACK16: Format[src]

pub const RG16_SFLOAT_PACK16: Format[src]

pub const RGB16_UNORM_PACK16: Format[src]

pub const RGB16_SNORM_PACK16: Format[src]

pub const RGB16_USCALED_PACK16: Format[src]

pub const RGB16_SSCALED_PACK16: Format[src]

pub const RGB16_UINT_PACK16: Format[src]

pub const RGB16_SINT_PACK16: Format[src]

pub const RGB16_SFLOAT_PACK16: Format[src]

pub const RGBA16_UNORM_PACK16: Format[src]

pub const RGBA16_SNORM_PACK16: Format[src]

pub const RGBA16_USCALED_PACK16: Format[src]

pub const RGBA16_SSCALED_PACK16: Format[src]

pub const RGBA16_UINT_PACK16: Format[src]

pub const RGBA16_SINT_PACK16: Format[src]

pub const RGBA16_SFLOAT_PACK16: Format[src]

pub const R32_UINT_PACK32: Format[src]

pub const R32_SINT_PACK32: Format[src]

pub const R32_SFLOAT_PACK32: Format[src]

pub const RG32_UINT_PACK32: Format[src]

pub const RG32_SINT_PACK32: Format[src]

pub const RG32_SFLOAT_PACK32: Format[src]

pub const RGB32_UINT_PACK32: Format[src]

pub const RGB32_SINT_PACK32: Format[src]

pub const RGB32_SFLOAT_PACK32: Format[src]

pub const RGBA32_UINT_PACK32: Format[src]

pub const RGBA32_SINT_PACK32: Format[src]

pub const RGBA32_SFLOAT_PACK32: Format[src]

pub const R64_UINT_PACK64: Format[src]

pub const R64_SINT_PACK64: Format[src]

pub const R64_SFLOAT_PACK64: Format[src]

pub const RG64_UINT_PACK64: Format[src]

pub const RG64_SINT_PACK64: Format[src]

pub const RG64_SFLOAT_PACK64: Format[src]

pub const RGB64_UINT_PACK64: Format[src]

pub const RGB64_SINT_PACK64: Format[src]

pub const RGB64_SFLOAT_PACK64: Format[src]

pub const RGBA64_UINT_PACK64: Format[src]

pub const RGBA64_SINT_PACK64: Format[src]

pub const RGBA64_SFLOAT_PACK64: Format[src]

pub const RG11B10_UFLOAT_PACK32: Format[src]

pub const RGB9E5_UFLOAT_PACK32: Format[src]

pub const D16_UNORM_PACK16: Format[src]

pub const D24_UNORM_PACK32: Format[src]

pub const D32_SFLOAT_PACK32: Format[src]

pub const S8_UINT_PACK8: Format[src]

pub const D16_UNORM_S8_UINT_PACK32: Format[src]

pub const D24_UNORM_S8_UINT_PACK32: Format[src]

pub const D32_SFLOAT_S8_UINT_PACK64: Format[src]

pub const RGB_DXT1_UNORM_BLOCK8: Format[src]

pub const RGB_DXT1_SRGB_BLOCK8: Format[src]

pub const RGBA_DXT1_UNORM_BLOCK8: Format[src]

pub const RGBA_DXT1_SRGB_BLOCK8: Format[src]

pub const RGBA_DXT3_UNORM_BLOCK16: Format[src]

pub const RGBA_DXT3_SRGB_BLOCK16: Format[src]

pub const RGBA_DXT5_UNORM_BLOCK16: Format[src]

pub const RGBA_DXT5_SRGB_BLOCK16: Format[src]

pub const R_ATI1N_UNORM_BLOCK8: Format[src]

pub const R_ATI1N_SNORM_BLOCK8: Format[src]

pub const RG_ATI2N_UNORM_BLOCK16: Format[src]

pub const RG_ATI2N_SNORM_BLOCK16: Format[src]

pub const RGB_BP_UFLOAT_BLOCK16: Format[src]

pub const RGB_BP_SFLOAT_BLOCK16: Format[src]

pub const RGBA_BP_UNORM_BLOCK16: Format[src]

pub const RGBA_BP_SRGB_BLOCK16: Format[src]

pub const RGB_ETC2_UNORM_BLOCK8: Format[src]

pub const RGB_ETC2_SRGB_BLOCK8: Format[src]

pub const RGBA_ETC2_UNORM_BLOCK8: Format[src]

pub const RGBA_ETC2_SRGB_BLOCK8: Format[src]

pub const RGBA_ETC2_UNORM_BLOCK16: Format[src]

pub const RGBA_ETC2_SRGB_BLOCK16: Format[src]

pub const R_EAC_UNORM_BLOCK8: Format[src]

pub const R_EAC_SNORM_BLOCK8: Format[src]

pub const RG_EAC_UNORM_BLOCK16: Format[src]

pub const RG_EAC_SNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_4X4_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_4X4_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_5X4_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_5X4_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_5X5_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_5X5_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_6X5_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_6X5_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_6X6_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_6X6_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_8X5_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_8X5_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_8X6_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_8X6_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_8X8_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_8X8_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_10X5_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_10X5_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_10X6_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_10X6_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_10X8_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_10X8_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_10X10_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_10X10_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_12X10_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_12X10_SRGB_BLOCK16: Format[src]

pub const RGBA_ASTC_12X12_UNORM_BLOCK16: Format[src]

pub const RGBA_ASTC_12X12_SRGB_BLOCK16: Format[src]

pub const RGB_PVRTC1_8X8_UNORM_BLOCK32: Format[src]

pub const RGB_PVRTC1_8X8_SRGB_BLOCK32: Format[src]

pub const RGB_PVRTC1_16X8_UNORM_BLOCK32: Format[src]

pub const RGB_PVRTC1_16X8_SRGB_BLOCK32: Format[src]

pub const RGBA_PVRTC1_8X8_UNORM_BLOCK32: Format[src]

pub const RGBA_PVRTC1_8X8_SRGB_BLOCK32: Format[src]

pub const RGBA_PVRTC1_16X8_UNORM_BLOCK32: Format[src]

pub const RGBA_PVRTC1_16X8_SRGB_BLOCK32: Format[src]

pub const RGBA_PVRTC2_4X4_UNORM_BLOCK8: Format[src]

pub const RGBA_PVRTC2_4X4_SRGB_BLOCK8: Format[src]

pub const RGBA_PVRTC2_8X4_UNORM_BLOCK8: Format[src]

pub const RGBA_PVRTC2_8X4_SRGB_BLOCK8: Format[src]

pub const RGB_ETC_UNORM_BLOCK8: Format[src]

pub const RGB_ATC_UNORM_BLOCK8: Format[src]

pub const RGBA_ATCA_UNORM_BLOCK16: Format[src]

pub const RGBA_ATCI_UNORM_BLOCK16: Format[src]

pub const L8_UNORM_PACK8: Format[src]

pub const A8_UNORM_PACK8: Format[src]

pub const LA8_UNORM_PACK8: Format[src]

pub const L16_UNORM_PACK16: Format[src]

pub const A16_UNORM_PACK16: Format[src]

pub const LA16_UNORM_PACK16: Format[src]

pub const BGR8_UNORM_PACK32: Format[src]

pub const BGR8_SRGB_PACK32: Format[src]

pub const RG3B2_UNORM_PACK8: Format[src]

pub const LAST: Format[src]

Trait Implementations

impl Clone for Format[src]

impl Debug for Format[src]

impl Display for Format[src]

impl Eq 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, 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> ToString for T where
    T: Display + ?Sized
[src]

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.