pub struct Format(/* private fields */);
Expand description
Texture data format.
Implementations§
Source§impl Format
impl Format
Sourcepub fn is_compressed(&self) -> bool
pub fn is_compressed(&self) -> bool
Evaluate whether a format is compressed with an S3TC algorithm.
Sourcepub fn is_s3tc_compressed(&self) -> bool
pub fn is_s3tc_compressed(&self) -> bool
Evaluate whether a format is compressed with an S3TC algorithm.
Sourcepub fn is_unsigned(&self) -> bool
pub fn is_unsigned(&self) -> bool
Evaluate whether a format is unsigned.
Sourcepub fn is_integer(&self) -> bool
pub fn is_integer(&self) -> bool
Evaluate whether the format is an integer format.
Sourcepub fn is_signed_integer(&self) -> bool
pub fn is_signed_integer(&self) -> bool
Evaluate whether the format is a signed integer format.
Sourcepub fn is_unsigned_integer(&self) -> bool
pub fn is_unsigned_integer(&self) -> bool
Evaluate whether the format is an unsigned integer format.
Sourcepub fn is_normalized(&self) -> bool
pub fn is_normalized(&self) -> bool
Evaluate whether the format is normalized.
Sourcepub fn is_stencil(&self) -> bool
pub fn is_stencil(&self) -> bool
Evaluate whether the format has a stencil component.
Sourcepub fn is_depth_stencil(&self) -> bool
pub fn is_depth_stencil(&self) -> bool
Evaluate whether the format has depth and stencil components.
Source§impl Format
impl Format
pub const UNDEFINED: Format
pub const FIRST: Format
pub const RG4_UNORM_PACK8: Format
pub const RGBA4_UNORM_PACK16: Format
pub const BGRA4_UNORM_PACK16: Format
pub const R5G6B5_UNORM_PACK16: Format
pub const B5G6R5_UNORM_PACK16: Format
pub const RGB5A1_UNORM_PACK16: Format
pub const BGR5A1_UNORM_PACK16: Format
pub const A1RGB5_UNORM_PACK16: Format
pub const R8_UNORM_PACK8: Format
pub const R8_SNORM_PACK8: Format
pub const R8_USCALED_PACK8: Format
pub const R8_SSCALED_PACK8: Format
pub const R8_UINT_PACK8: Format
pub const R8_SINT_PACK8: Format
pub const R8_SRGB_PACK8: Format
pub const RG8_UNORM_PACK8: Format
pub const RG8_SNORM_PACK8: Format
pub const RG8_USCALED_PACK8: Format
pub const RG8_SSCALED_PACK8: Format
pub const RG8_UINT_PACK8: Format
pub const RG8_SINT_PACK8: Format
pub const RG8_SRGB_PACK8: Format
pub const RGB8_UNORM_PACK8: Format
pub const RGB8_SNORM_PACK8: Format
pub const RGB8_USCALED_PACK8: Format
pub const RGB8_SSCALED_PACK8: Format
pub const RGB8_UINT_PACK8: Format
pub const RGB8_SINT_PACK8: Format
pub const RGB8_SRGB_PACK8: Format
pub const BGR8_UNORM_PACK8: Format
pub const BGR8_SNORM_PACK8: Format
pub const BGR8_USCALED_PACK8: Format
pub const BGR8_SSCALED_PACK8: Format
pub const BGR8_UINT_PACK8: Format
pub const BGR8_SINT_PACK8: Format
pub const BGR8_SRGB_PACK8: Format
pub const RGBA8_UNORM_PACK8: Format
pub const RGBA8_SNORM_PACK8: Format
pub const RGBA8_USCALED_PACK8: Format
pub const RGBA8_SSCALED_PACK8: Format
pub const RGBA8_UINT_PACK8: Format
pub const RGBA8_SINT_PACK8: Format
pub const RGBA8_SRGB_PACK8: Format
pub const BGRA8_UNORM_PACK8: Format
pub const BGRA8_SNORM_PACK8: Format
pub const BGRA8_USCALED_PACK8: Format
pub const BGRA8_SSCALED_PACK8: Format
pub const BGRA8_UINT_PACK8: Format
pub const BGRA8_SINT_PACK8: Format
pub const BGRA8_SRGB_PACK8: Format
pub const RGBA8_UNORM_PACK32: Format
pub const RGBA8_SNORM_PACK32: Format
pub const RGBA8_USCALED_PACK32: Format
pub const RGBA8_SSCALED_PACK32: Format
pub const RGBA8_UINT_PACK32: Format
pub const RGBA8_SINT_PACK32: Format
pub const RGBA8_SRGB_PACK32: Format
pub const RGB10A2_UNORM_PACK32: Format
pub const RGB10A2_SNORM_PACK32: Format
pub const RGB10A2_USCALED_PACK32: Format
pub const RGB10A2_SSCALED_PACK32: Format
pub const RGB10A2_UINT_PACK32: Format
pub const RGB10A2_SINT_PACK32: Format
pub const BGR10A2_UNORM_PACK32: Format
pub const BGR10A2_SNORM_PACK32: Format
pub const BGR10A2_USCALED_PACK32: Format
pub const BGR10A2_SSCALED_PACK32: Format
pub const BGR10A2_UINT_PACK32: Format
pub const BGR10A2_SINT_PACK32: Format
pub const R16_UNORM_PACK16: Format
pub const R16_SNORM_PACK16: Format
pub const R16_USCALED_PACK16: Format
pub const R16_SSCALED_PACK16: Format
pub const R16_UINT_PACK16: Format
pub const R16_SINT_PACK16: Format
pub const R16_SFLOAT_PACK16: Format
pub const RG16_UNORM_PACK16: Format
pub const RG16_SNORM_PACK16: Format
pub const RG16_USCALED_PACK16: Format
pub const RG16_SSCALED_PACK16: Format
pub const RG16_UINT_PACK16: Format
pub const RG16_SINT_PACK16: Format
pub const RG16_SFLOAT_PACK16: Format
pub const RGB16_UNORM_PACK16: Format
pub const RGB16_SNORM_PACK16: Format
pub const RGB16_USCALED_PACK16: Format
pub const RGB16_SSCALED_PACK16: Format
pub const RGB16_UINT_PACK16: Format
pub const RGB16_SINT_PACK16: Format
pub const RGB16_SFLOAT_PACK16: Format
pub const RGBA16_UNORM_PACK16: Format
pub const RGBA16_SNORM_PACK16: Format
pub const RGBA16_USCALED_PACK16: Format
pub const RGBA16_SSCALED_PACK16: Format
pub const RGBA16_UINT_PACK16: Format
pub const RGBA16_SINT_PACK16: Format
pub const RGBA16_SFLOAT_PACK16: Format
pub const R32_UINT_PACK32: Format
pub const R32_SINT_PACK32: Format
pub const R32_SFLOAT_PACK32: Format
pub const RG32_UINT_PACK32: Format
pub const RG32_SINT_PACK32: Format
pub const RG32_SFLOAT_PACK32: Format
pub const RGB32_UINT_PACK32: Format
pub const RGB32_SINT_PACK32: Format
pub const RGB32_SFLOAT_PACK32: Format
pub const RGBA32_UINT_PACK32: Format
pub const RGBA32_SINT_PACK32: Format
pub const RGBA32_SFLOAT_PACK32: Format
pub const R64_UINT_PACK64: Format
pub const R64_SINT_PACK64: Format
pub const R64_SFLOAT_PACK64: Format
pub const RG64_UINT_PACK64: Format
pub const RG64_SINT_PACK64: Format
pub const RG64_SFLOAT_PACK64: Format
pub const RGB64_UINT_PACK64: Format
pub const RGB64_SINT_PACK64: Format
pub const RGB64_SFLOAT_PACK64: Format
pub const RGBA64_UINT_PACK64: Format
pub const RGBA64_SINT_PACK64: Format
pub const RGBA64_SFLOAT_PACK64: Format
pub const RG11B10_UFLOAT_PACK32: Format
pub const RGB9E5_UFLOAT_PACK32: Format
pub const D16_UNORM_PACK16: Format
pub const D24_UNORM_PACK32: Format
pub const D32_SFLOAT_PACK32: Format
pub const S8_UINT_PACK8: Format
pub const D16_UNORM_S8_UINT_PACK32: Format
pub const D24_UNORM_S8_UINT_PACK32: Format
pub const D32_SFLOAT_S8_UINT_PACK64: Format
pub const RGB_DXT1_UNORM_BLOCK8: Format
pub const RGB_DXT1_SRGB_BLOCK8: Format
pub const RGBA_DXT1_UNORM_BLOCK8: Format
pub const RGBA_DXT1_SRGB_BLOCK8: Format
pub const RGBA_DXT3_UNORM_BLOCK16: Format
pub const RGBA_DXT3_SRGB_BLOCK16: Format
pub const RGBA_DXT5_UNORM_BLOCK16: Format
pub const RGBA_DXT5_SRGB_BLOCK16: Format
pub const R_ATI1N_UNORM_BLOCK8: Format
pub const R_ATI1N_SNORM_BLOCK8: Format
pub const RG_ATI2N_UNORM_BLOCK16: Format
pub const RG_ATI2N_SNORM_BLOCK16: Format
pub const RGB_BP_UFLOAT_BLOCK16: Format
pub const RGB_BP_SFLOAT_BLOCK16: Format
pub const RGBA_BP_UNORM_BLOCK16: Format
pub const RGBA_BP_SRGB_BLOCK16: Format
pub const RGB_ETC2_UNORM_BLOCK8: Format
pub const RGB_ETC2_SRGB_BLOCK8: Format
pub const RGBA_ETC2_UNORM_BLOCK8: Format
pub const RGBA_ETC2_SRGB_BLOCK8: Format
pub const RGBA_ETC2_UNORM_BLOCK16: Format
pub const RGBA_ETC2_SRGB_BLOCK16: Format
pub const R_EAC_UNORM_BLOCK8: Format
pub const R_EAC_SNORM_BLOCK8: Format
pub const RG_EAC_UNORM_BLOCK16: Format
pub const RG_EAC_SNORM_BLOCK16: Format
pub const RGBA_ASTC_4X4_UNORM_BLOCK16: Format
pub const RGBA_ASTC_4X4_SRGB_BLOCK16: Format
pub const RGBA_ASTC_5X4_UNORM_BLOCK16: Format
pub const RGBA_ASTC_5X4_SRGB_BLOCK16: Format
pub const RGBA_ASTC_5X5_UNORM_BLOCK16: Format
pub const RGBA_ASTC_5X5_SRGB_BLOCK16: Format
pub const RGBA_ASTC_6X5_UNORM_BLOCK16: Format
pub const RGBA_ASTC_6X5_SRGB_BLOCK16: Format
pub const RGBA_ASTC_6X6_UNORM_BLOCK16: Format
pub const RGBA_ASTC_6X6_SRGB_BLOCK16: Format
pub const RGBA_ASTC_8X5_UNORM_BLOCK16: Format
pub const RGBA_ASTC_8X5_SRGB_BLOCK16: Format
pub const RGBA_ASTC_8X6_UNORM_BLOCK16: Format
pub const RGBA_ASTC_8X6_SRGB_BLOCK16: Format
pub const RGBA_ASTC_8X8_UNORM_BLOCK16: Format
pub const RGBA_ASTC_8X8_SRGB_BLOCK16: Format
pub const RGBA_ASTC_10X5_UNORM_BLOCK16: Format
pub const RGBA_ASTC_10X5_SRGB_BLOCK16: Format
pub const RGBA_ASTC_10X6_UNORM_BLOCK16: Format
pub const RGBA_ASTC_10X6_SRGB_BLOCK16: Format
pub const RGBA_ASTC_10X8_UNORM_BLOCK16: Format
pub const RGBA_ASTC_10X8_SRGB_BLOCK16: Format
pub const RGBA_ASTC_10X10_UNORM_BLOCK16: Format
pub const RGBA_ASTC_10X10_SRGB_BLOCK16: Format
pub const RGBA_ASTC_12X10_UNORM_BLOCK16: Format
pub const RGBA_ASTC_12X10_SRGB_BLOCK16: Format
pub const RGBA_ASTC_12X12_UNORM_BLOCK16: Format
pub const RGBA_ASTC_12X12_SRGB_BLOCK16: Format
pub const RGB_PVRTC1_8X8_UNORM_BLOCK32: Format
pub const RGB_PVRTC1_8X8_SRGB_BLOCK32: Format
pub const RGB_PVRTC1_16X8_UNORM_BLOCK32: Format
pub const RGB_PVRTC1_16X8_SRGB_BLOCK32: Format
pub const RGBA_PVRTC1_8X8_UNORM_BLOCK32: Format
pub const RGBA_PVRTC1_8X8_SRGB_BLOCK32: Format
pub const RGBA_PVRTC1_16X8_UNORM_BLOCK32: Format
pub const RGBA_PVRTC1_16X8_SRGB_BLOCK32: Format
pub const RGBA_PVRTC2_4X4_UNORM_BLOCK8: Format
pub const RGBA_PVRTC2_4X4_SRGB_BLOCK8: Format
pub const RGBA_PVRTC2_8X4_UNORM_BLOCK8: Format
pub const RGBA_PVRTC2_8X4_SRGB_BLOCK8: Format
pub const RGB_ETC_UNORM_BLOCK8: Format
pub const RGB_ATC_UNORM_BLOCK8: Format
pub const RGBA_ATCA_UNORM_BLOCK16: Format
pub const RGBA_ATCI_UNORM_BLOCK16: Format
pub const L8_UNORM_PACK8: Format
pub const A8_UNORM_PACK8: Format
pub const LA8_UNORM_PACK8: Format
pub const L16_UNORM_PACK16: Format
pub const A16_UNORM_PACK16: Format
pub const LA16_UNORM_PACK16: Format
pub const BGR8_UNORM_PACK32: Format
pub const BGR8_SRGB_PACK32: Format
pub const RG3B2_UNORM_PACK8: Format
pub const LAST: Format
Trait Implementations§
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more