#[repr(u32)]
pub enum Format {
Show 184 variants
R4G4UnormPack8,
R4G4B4A4UnormPack16,
B4G4R4A4UnormPack16,
R5G6B5UnormPack16,
B5G6R5UnormPack16,
R5G5B5A1UnormPack16,
B5G5R5A1UnormPack16,
A1R5G5B5UnormPack16,
R8Unorm,
R8Snorm,
R8Uscaled,
R8Sscaled,
R8Uint,
R8Sint,
R8Srgb,
R8G8Unorm,
R8G8Snorm,
R8G8Uscaled,
R8G8Sscaled,
R8G8Uint,
R8G8Sint,
R8G8Srgb,
R8G8B8Unorm,
R8G8B8Snorm,
R8G8B8Uscaled,
R8G8B8Sscaled,
R8G8B8Uint,
R8G8B8Sint,
R8G8B8Srgb,
B8G8R8Unorm,
B8G8R8Snorm,
B8G8R8Uscaled,
B8G8R8Sscaled,
B8G8R8Uint,
B8G8R8Sint,
B8G8R8Srgb,
R8G8B8A8Unorm,
R8G8B8A8Snorm,
R8G8B8A8Uscaled,
R8G8B8A8Sscaled,
R8G8B8A8Uint,
R8G8B8A8Sint,
R8G8B8A8Srgb,
B8G8R8A8Unorm,
B8G8R8A8Snorm,
B8G8R8A8Uscaled,
B8G8R8A8Sscaled,
B8G8R8A8Uint,
B8G8R8A8Sint,
B8G8R8A8Srgb,
A8B8G8R8UnormPack32,
A8B8G8R8SnormPack32,
A8B8G8R8UscaledPack32,
A8B8G8R8SscaledPack32,
A8B8G8R8UintPack32,
A8B8G8R8SintPack32,
A8B8G8R8SrgbPack32,
A2R10G10B10UnormPack32,
A2R10G10B10SnormPack32,
A2R10G10B10UscaledPack32,
A2R10G10B10SscaledPack32,
A2R10G10B10UintPack32,
A2R10G10B10SintPack32,
A2B10G10R10UnormPack32,
A2B10G10R10SnormPack32,
A2B10G10R10UscaledPack32,
A2B10G10R10SscaledPack32,
A2B10G10R10UintPack32,
A2B10G10R10SintPack32,
R16Unorm,
R16Snorm,
R16Uscaled,
R16Sscaled,
R16Uint,
R16Sint,
R16Sfloat,
R16G16Unorm,
R16G16Snorm,
R16G16Uscaled,
R16G16Sscaled,
R16G16Uint,
R16G16Sint,
R16G16Sfloat,
R16G16B16Unorm,
R16G16B16Snorm,
R16G16B16Uscaled,
R16G16B16Sscaled,
R16G16B16Uint,
R16G16B16Sint,
R16G16B16Sfloat,
R16G16B16A16Unorm,
R16G16B16A16Snorm,
R16G16B16A16Uscaled,
R16G16B16A16Sscaled,
R16G16B16A16Uint,
R16G16B16A16Sint,
R16G16B16A16Sfloat,
R32Uint,
R32Sint,
R32Sfloat,
R32G32Uint,
R32G32Sint,
R32G32Sfloat,
R32G32B32Uint,
R32G32B32Sint,
R32G32B32Sfloat,
R32G32B32A32Uint,
R32G32B32A32Sint,
R32G32B32A32Sfloat,
R64Uint,
R64Sint,
R64Sfloat,
R64G64Uint,
R64G64Sint,
R64G64Sfloat,
R64G64B64Uint,
R64G64B64Sint,
R64G64B64Sfloat,
R64G64B64A64Uint,
R64G64B64A64Sint,
R64G64B64A64Sfloat,
B10G11R11UfloatPack32,
E5B9G9R9UfloatPack32,
D16Unorm,
X8_D24UnormPack32,
D32Sfloat,
S8Uint,
D16Unorm_S8Uint,
D24Unorm_S8Uint,
D32Sfloat_S8Uint,
BC1_RGBUnormBlock,
BC1_RGBSrgbBlock,
BC1_RGBAUnormBlock,
BC1_RGBASrgbBlock,
BC2UnormBlock,
BC2SrgbBlock,
BC3UnormBlock,
BC3SrgbBlock,
BC4UnormBlock,
BC4SnormBlock,
BC5UnormBlock,
BC5SnormBlock,
BC6HUfloatBlock,
BC6HSfloatBlock,
BC7UnormBlock,
BC7SrgbBlock,
ETC2_R8G8B8UnormBlock,
ETC2_R8G8B8SrgbBlock,
ETC2_R8G8B8A1UnormBlock,
ETC2_R8G8B8A1SrgbBlock,
ETC2_R8G8B8A8UnormBlock,
ETC2_R8G8B8A8SrgbBlock,
EAC_R11UnormBlock,
EAC_R11SnormBlock,
EAC_R11G11UnormBlock,
EAC_R11G11SnormBlock,
ASTC_4x4UnormBlock,
ASTC_4x4SrgbBlock,
ASTC_5x4UnormBlock,
ASTC_5x4SrgbBlock,
ASTC_5x5UnormBlock,
ASTC_5x5SrgbBlock,
ASTC_6x5UnormBlock,
ASTC_6x5SrgbBlock,
ASTC_6x6UnormBlock,
ASTC_6x6SrgbBlock,
ASTC_8x5UnormBlock,
ASTC_8x5SrgbBlock,
ASTC_8x6UnormBlock,
ASTC_8x6SrgbBlock,
ASTC_8x8UnormBlock,
ASTC_8x8SrgbBlock,
ASTC_10x5UnormBlock,
ASTC_10x5SrgbBlock,
ASTC_10x6UnormBlock,
ASTC_10x6SrgbBlock,
ASTC_10x8UnormBlock,
ASTC_10x8SrgbBlock,
ASTC_10x10UnormBlock,
ASTC_10x10SrgbBlock,
ASTC_12x10UnormBlock,
ASTC_12x10SrgbBlock,
ASTC_12x12UnormBlock,
ASTC_12x12SrgbBlock,
}
Expand description
An enumeration of all the possible formats.
Variants
R4G4UnormPack8
R4G4B4A4UnormPack16
B4G4R4A4UnormPack16
R5G6B5UnormPack16
B5G6R5UnormPack16
R5G5B5A1UnormPack16
B5G5R5A1UnormPack16
A1R5G5B5UnormPack16
R8Unorm
R8Snorm
R8Uscaled
R8Sscaled
R8Uint
R8Sint
R8Srgb
R8G8Unorm
R8G8Snorm
R8G8Uscaled
R8G8Sscaled
R8G8Uint
R8G8Sint
R8G8Srgb
R8G8B8Unorm
R8G8B8Snorm
R8G8B8Uscaled
R8G8B8Sscaled
R8G8B8Uint
R8G8B8Sint
R8G8B8Srgb
B8G8R8Unorm
B8G8R8Snorm
B8G8R8Uscaled
B8G8R8Sscaled
B8G8R8Uint
B8G8R8Sint
B8G8R8Srgb
R8G8B8A8Unorm
R8G8B8A8Snorm
R8G8B8A8Uscaled
R8G8B8A8Sscaled
R8G8B8A8Uint
R8G8B8A8Sint
R8G8B8A8Srgb
B8G8R8A8Unorm
B8G8R8A8Snorm
B8G8R8A8Uscaled
B8G8R8A8Sscaled
B8G8R8A8Uint
B8G8R8A8Sint
B8G8R8A8Srgb
A8B8G8R8UnormPack32
A8B8G8R8SnormPack32
A8B8G8R8UscaledPack32
A8B8G8R8SscaledPack32
A8B8G8R8UintPack32
A8B8G8R8SintPack32
A8B8G8R8SrgbPack32
A2R10G10B10UnormPack32
A2R10G10B10SnormPack32
A2R10G10B10UscaledPack32
A2R10G10B10SscaledPack32
A2R10G10B10UintPack32
A2R10G10B10SintPack32
A2B10G10R10UnormPack32
A2B10G10R10SnormPack32
A2B10G10R10UscaledPack32
A2B10G10R10SscaledPack32
A2B10G10R10UintPack32
A2B10G10R10SintPack32
R16Unorm
R16Snorm
R16Uscaled
R16Sscaled
R16Uint
R16Sint
R16Sfloat
R16G16Unorm
R16G16Snorm
R16G16Uscaled
R16G16Sscaled
R16G16Uint
R16G16Sint
R16G16Sfloat
R16G16B16Unorm
R16G16B16Snorm
R16G16B16Uscaled
R16G16B16Sscaled
R16G16B16Uint
R16G16B16Sint
R16G16B16Sfloat
R16G16B16A16Unorm
R16G16B16A16Snorm
R16G16B16A16Uscaled
R16G16B16A16Sscaled
R16G16B16A16Uint
R16G16B16A16Sint
R16G16B16A16Sfloat
R32Uint
R32Sint
R32Sfloat
R32G32Uint
R32G32Sint
R32G32Sfloat
R32G32B32Uint
R32G32B32Sint
R32G32B32Sfloat
R32G32B32A32Uint
R32G32B32A32Sint
R32G32B32A32Sfloat
R64Uint
R64Sint
R64Sfloat
R64G64Uint
R64G64Sint
R64G64Sfloat
R64G64B64Uint
R64G64B64Sint
R64G64B64Sfloat
R64G64B64A64Uint
R64G64B64A64Sint
R64G64B64A64Sfloat
B10G11R11UfloatPack32
E5B9G9R9UfloatPack32
D16Unorm
X8_D24UnormPack32
D32Sfloat
S8Uint
D16Unorm_S8Uint
D24Unorm_S8Uint
D32Sfloat_S8Uint
BC1_RGBUnormBlock
BC1_RGBSrgbBlock
BC1_RGBAUnormBlock
BC1_RGBASrgbBlock
BC2UnormBlock
BC2SrgbBlock
BC3UnormBlock
BC3SrgbBlock
BC4UnormBlock
BC4SnormBlock
BC5UnormBlock
BC5SnormBlock
BC6HUfloatBlock
BC6HSfloatBlock
BC7UnormBlock
BC7SrgbBlock
ETC2_R8G8B8UnormBlock
ETC2_R8G8B8SrgbBlock
ETC2_R8G8B8A1UnormBlock
ETC2_R8G8B8A1SrgbBlock
ETC2_R8G8B8A8UnormBlock
ETC2_R8G8B8A8SrgbBlock
EAC_R11UnormBlock
EAC_R11SnormBlock
EAC_R11G11UnormBlock
EAC_R11G11SnormBlock
ASTC_4x4UnormBlock
ASTC_4x4SrgbBlock
ASTC_5x4UnormBlock
ASTC_5x4SrgbBlock
ASTC_5x5UnormBlock
ASTC_5x5SrgbBlock
ASTC_6x5UnormBlock
ASTC_6x5SrgbBlock
ASTC_6x6UnormBlock
ASTC_6x6SrgbBlock
ASTC_8x5UnormBlock
ASTC_8x5SrgbBlock
ASTC_8x6UnormBlock
ASTC_8x6SrgbBlock
ASTC_8x8UnormBlock
ASTC_8x8SrgbBlock
ASTC_10x5UnormBlock
ASTC_10x5SrgbBlock
ASTC_10x6UnormBlock
ASTC_10x6SrgbBlock
ASTC_10x8UnormBlock
ASTC_10x8SrgbBlock
ASTC_10x10UnormBlock
ASTC_10x10SrgbBlock
ASTC_12x10UnormBlock
ASTC_12x10SrgbBlock
ASTC_12x12UnormBlock
ASTC_12x12SrgbBlock
Implementations
Trait Implementations
sourceimpl AcceptsPixels<[f16; 1]> for Format
impl AcceptsPixels<[f16; 1]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[f16; 2]> for Format
impl AcceptsPixels<[f16; 2]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[f16; 3]> for Format
impl AcceptsPixels<[f16; 3]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[f16; 4]> for Format
impl AcceptsPixels<[f16; 4]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[f32; 1]> for Format
impl AcceptsPixels<[f32; 1]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[f32; 2]> for Format
impl AcceptsPixels<[f32; 2]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[f32; 3]> for Format
impl AcceptsPixels<[f32; 3]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[f32; 4]> for Format
impl AcceptsPixels<[f32; 4]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[f64; 1]> for Format
impl AcceptsPixels<[f64; 1]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[f64; 2]> for Format
impl AcceptsPixels<[f64; 2]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[f64; 3]> for Format
impl AcceptsPixels<[f64; 3]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[f64; 4]> for Format
impl AcceptsPixels<[f64; 4]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i16; 1]> for Format
impl AcceptsPixels<[i16; 1]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i16; 2]> for Format
impl AcceptsPixels<[i16; 2]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i16; 3]> for Format
impl AcceptsPixels<[i16; 3]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i16; 4]> for Format
impl AcceptsPixels<[i16; 4]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i32; 1]> for Format
impl AcceptsPixels<[i32; 1]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i32; 2]> for Format
impl AcceptsPixels<[i32; 2]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i32; 3]> for Format
impl AcceptsPixels<[i32; 3]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i32; 4]> for Format
impl AcceptsPixels<[i32; 4]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i64; 1]> for Format
impl AcceptsPixels<[i64; 1]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i64; 2]> for Format
impl AcceptsPixels<[i64; 2]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i64; 3]> for Format
impl AcceptsPixels<[i64; 3]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i64; 4]> for Format
impl AcceptsPixels<[i64; 4]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i8; 1]> for Format
impl AcceptsPixels<[i8; 1]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i8; 2]> for Format
impl AcceptsPixels<[i8; 2]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i8; 3]> for Format
impl AcceptsPixels<[i8; 3]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[i8; 4]> for Format
impl AcceptsPixels<[i8; 4]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u16; 1]> for Format
impl AcceptsPixels<[u16; 1]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u16; 2]> for Format
impl AcceptsPixels<[u16; 2]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u16; 3]> for Format
impl AcceptsPixels<[u16; 3]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u16; 4]> for Format
impl AcceptsPixels<[u16; 4]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u32; 1]> for Format
impl AcceptsPixels<[u32; 1]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u32; 2]> for Format
impl AcceptsPixels<[u32; 2]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u32; 3]> for Format
impl AcceptsPixels<[u32; 3]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u32; 4]> for Format
impl AcceptsPixels<[u32; 4]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u64; 1]> for Format
impl AcceptsPixels<[u64; 1]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u64; 2]> for Format
impl AcceptsPixels<[u64; 2]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u64; 3]> for Format
impl AcceptsPixels<[u64; 3]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u64; 4]> for Format
impl AcceptsPixels<[u64; 4]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u8; 1]> for Format
impl AcceptsPixels<[u8; 1]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u8; 2]> for Format
impl AcceptsPixels<[u8; 2]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u8; 3]> for Format
impl AcceptsPixels<[u8; 3]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<[u8; 4]> for Format
impl AcceptsPixels<[u8; 4]> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f16, f16, f16, f16)> for Format
impl AcceptsPixels<(f16, f16, f16, f16)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f16, f16, f16)> for Format
impl AcceptsPixels<(f16, f16, f16)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f16, f16)> for Format
impl AcceptsPixels<(f16, f16)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f16,)> for Format
impl AcceptsPixels<(f16,)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f32, f32, f32, f32)> for Format
impl AcceptsPixels<(f32, f32, f32, f32)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f32, f32, f32)> for Format
impl AcceptsPixels<(f32, f32, f32)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f32, f32)> for Format
impl AcceptsPixels<(f32, f32)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f32,)> for Format
impl AcceptsPixels<(f32,)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f64, f64, f64, f64)> for Format
impl AcceptsPixels<(f64, f64, f64, f64)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f64, f64, f64)> for Format
impl AcceptsPixels<(f64, f64, f64)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f64, f64)> for Format
impl AcceptsPixels<(f64, f64)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(f64,)> for Format
impl AcceptsPixels<(f64,)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i16, i16, i16, i16)> for Format
impl AcceptsPixels<(i16, i16, i16, i16)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i16, i16, i16)> for Format
impl AcceptsPixels<(i16, i16, i16)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i16, i16)> for Format
impl AcceptsPixels<(i16, i16)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i16,)> for Format
impl AcceptsPixels<(i16,)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i32, i32, i32, i32)> for Format
impl AcceptsPixels<(i32, i32, i32, i32)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i32, i32, i32)> for Format
impl AcceptsPixels<(i32, i32, i32)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i32, i32)> for Format
impl AcceptsPixels<(i32, i32)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i32,)> for Format
impl AcceptsPixels<(i32,)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i64, i64, i64, i64)> for Format
impl AcceptsPixels<(i64, i64, i64, i64)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i64, i64, i64)> for Format
impl AcceptsPixels<(i64, i64, i64)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i64, i64)> for Format
impl AcceptsPixels<(i64, i64)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i64,)> for Format
impl AcceptsPixels<(i64,)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i8, i8, i8, i8)> for Format
impl AcceptsPixels<(i8, i8, i8, i8)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i8, i8, i8)> for Format
impl AcceptsPixels<(i8, i8, i8)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i8, i8)> for Format
impl AcceptsPixels<(i8, i8)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(i8,)> for Format
impl AcceptsPixels<(i8,)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u16, u16, u16, u16)> for Format
impl AcceptsPixels<(u16, u16, u16, u16)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u16, u16, u16)> for Format
impl AcceptsPixels<(u16, u16, u16)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u16, u16)> for Format
impl AcceptsPixels<(u16, u16)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u16,)> for Format
impl AcceptsPixels<(u16,)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u32, u32, u32, u32)> for Format
impl AcceptsPixels<(u32, u32, u32, u32)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u32, u32, u32)> for Format
impl AcceptsPixels<(u32, u32, u32)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u32, u32)> for Format
impl AcceptsPixels<(u32, u32)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u32,)> for Format
impl AcceptsPixels<(u32,)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u64, u64, u64, u64)> for Format
impl AcceptsPixels<(u64, u64, u64, u64)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u64, u64, u64)> for Format
impl AcceptsPixels<(u64, u64, u64)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u64, u64)> for Format
impl AcceptsPixels<(u64, u64)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u64,)> for Format
impl AcceptsPixels<(u64,)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u8, u8, u8, u8)> for Format
impl AcceptsPixels<(u8, u8, u8, u8)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u8, u8, u8)> for Format
impl AcceptsPixels<(u8, u8, u8)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u8, u8)> for Format
impl AcceptsPixels<(u8, u8)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<(u8,)> for Format
impl AcceptsPixels<(u8,)> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<f16> for Format
impl AcceptsPixels<f16> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<f32> for Format
impl AcceptsPixels<f32> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<f64> for Format
impl AcceptsPixels<f64> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<i16> for Format
impl AcceptsPixels<i16> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<i32> for Format
impl AcceptsPixels<i32> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<i64> for Format
impl AcceptsPixels<i64> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<i8> for Format
impl AcceptsPixels<i8> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<u16> for Format
impl AcceptsPixels<u16> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<u32> for Format
impl AcceptsPixels<u32> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<u64> for Format
impl AcceptsPixels<u64> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl AcceptsPixels<u8> for Format
impl AcceptsPixels<u8> for Format
sourcefn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if
T
cannot be used as a source of pixels for Self
.sourceimpl FormatDesc for Format
impl FormatDesc for Format
type ClearValue = ClearValue
fn format(&self) -> Format
fn decode_clear_value(&self, value: Self::ClearValue) -> ClearValue
sourceimpl<W> ImageClearValue<<Format as FormatDesc>::ClearValue> for SwapchainImage<W>
impl<W> ImageClearValue<<Format as FormatDesc>::ClearValue> for SwapchainImage<W>
fn decode(&self, value: <Format as FormatDesc>::ClearValue) -> Option<ClearValue>
sourceimpl PossibleCompressedFormatDesc for Format
impl PossibleCompressedFormatDesc for Format
fn is_compressed(&self) -> bool
sourceimpl PossibleDepthStencilFormatDesc for Format
impl PossibleDepthStencilFormatDesc for Format
fn is_depth_stencil(&self) -> bool
sourceimpl PossibleFloatFormatDesc for Format
impl PossibleFloatFormatDesc for Format
sourceimpl PossibleFloatOrCompressedFormatDesc for Format
impl PossibleFloatOrCompressedFormatDesc for Format
sourcefn is_float_or_compressed(&self) -> bool
fn is_float_or_compressed(&self) -> bool
Returns true if the format is a float or compressed format.
sourceimpl PossibleStencilFormatDesc for Format
impl PossibleStencilFormatDesc for Format
fn is_stencil(&self) -> bool
impl Copy for Format
impl Eq for Format
impl StructuralEq for Format
impl StructuralPartialEq for Format
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.