gfx_hal::format

Trait AsFormat

Source
pub trait AsFormat {
    const SELF: Format;
}
Expand description

Conversion trait into Format;

Required Associated Constants§

Source

const SELF: Format

Associated format.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AsFormat for f32

Source§

const SELF: Format = Format::R32Sfloat

Source§

impl AsFormat for [f32; 2]

Source§

const SELF: Format = Format::Rg32Sfloat

Source§

impl AsFormat for [f32; 3]

Source§

const SELF: Format = Format::Rgb32Sfloat

Source§

impl AsFormat for [f32; 4]

Source§

const SELF: Format = Format::Rgba32Sfloat

Implementors§

Source§

impl AsFormat for A1r5g5b5Unorm

Source§

const SELF: Format = Format::A1r5g5b5Unorm

Source§

impl AsFormat for A2b10g10r10Sint

Source§

const SELF: Format = Format::A2b10g10r10Sint

Source§

impl AsFormat for A2b10g10r10Snorm

Source§

const SELF: Format = Format::A2b10g10r10Snorm

Source§

impl AsFormat for A2b10g10r10Sscaled

Source§

const SELF: Format = Format::A2b10g10r10Sscaled

Source§

impl AsFormat for A2b10g10r10Uint

Source§

const SELF: Format = Format::A2b10g10r10Uint

Source§

impl AsFormat for A2b10g10r10Unorm

Source§

const SELF: Format = Format::A2b10g10r10Unorm

Source§

impl AsFormat for A2b10g10r10Uscaled

Source§

const SELF: Format = Format::A2b10g10r10Uscaled

Source§

impl AsFormat for A2r10g10b10Sint

Source§

const SELF: Format = Format::A2r10g10b10Sint

Source§

impl AsFormat for A2r10g10b10Snorm

Source§

const SELF: Format = Format::A2r10g10b10Snorm

Source§

impl AsFormat for A2r10g10b10Sscaled

Source§

const SELF: Format = Format::A2r10g10b10Sscaled

Source§

impl AsFormat for A2r10g10b10Uint

Source§

const SELF: Format = Format::A2r10g10b10Uint

Source§

impl AsFormat for A2r10g10b10Unorm

Source§

const SELF: Format = Format::A2r10g10b10Unorm

Source§

impl AsFormat for A2r10g10b10Uscaled

Source§

const SELF: Format = Format::A2r10g10b10Uscaled

Source§

impl AsFormat for Abgr8Sint

Source§

const SELF: Format = Format::Abgr8Sint

Source§

impl AsFormat for Abgr8Snorm

Source§

const SELF: Format = Format::Abgr8Snorm

Source§

impl AsFormat for Abgr8Srgb

Source§

const SELF: Format = Format::Abgr8Srgb

Source§

impl AsFormat for Abgr8Sscaled

Source§

const SELF: Format = Format::Abgr8Sscaled

Source§

impl AsFormat for Abgr8Uint

Source§

const SELF: Format = Format::Abgr8Uint

Source§

impl AsFormat for Abgr8Unorm

Source§

const SELF: Format = Format::Abgr8Unorm

Source§

impl AsFormat for Abgr8Uscaled

Source§

const SELF: Format = Format::Abgr8Uscaled

Source§

impl AsFormat for Astc4x4Srgb

Source§

const SELF: Format = Format::Astc4x4Srgb

Source§

impl AsFormat for Astc4x4Unorm

Source§

const SELF: Format = Format::Astc4x4Unorm

Source§

impl AsFormat for Astc5x4Srgb

Source§

const SELF: Format = Format::Astc5x4Srgb

Source§

impl AsFormat for Astc5x4Unorm

Source§

const SELF: Format = Format::Astc5x4Unorm

Source§

impl AsFormat for Astc5x5Srgb

Source§

const SELF: Format = Format::Astc5x5Srgb

Source§

impl AsFormat for Astc5x5Unorm

Source§

const SELF: Format = Format::Astc5x5Unorm

Source§

impl AsFormat for Astc6x5Srgb

Source§

const SELF: Format = Format::Astc6x5Srgb

Source§

impl AsFormat for Astc6x5Unorm

Source§

const SELF: Format = Format::Astc6x5Unorm

Source§

impl AsFormat for Astc6x6Srgb

Source§

const SELF: Format = Format::Astc6x6Srgb

Source§

impl AsFormat for Astc6x6Unorm

Source§

const SELF: Format = Format::Astc6x6Unorm

Source§

impl AsFormat for Astc8x5Srgb

Source§

const SELF: Format = Format::Astc8x5Srgb

Source§

impl AsFormat for Astc8x5Unorm

Source§

const SELF: Format = Format::Astc8x5Unorm

Source§

impl AsFormat for Astc8x6Srgb

Source§

const SELF: Format = Format::Astc8x6Srgb

Source§

impl AsFormat for Astc8x6Unorm

Source§

const SELF: Format = Format::Astc8x6Unorm

Source§

impl AsFormat for Astc8x8Srgb

Source§

const SELF: Format = Format::Astc8x8Srgb

Source§

impl AsFormat for Astc8x8Unorm

Source§

const SELF: Format = Format::Astc8x8Unorm

Source§

impl AsFormat for Astc10x5Srgb

Source§

const SELF: Format = Format::Astc10x5Srgb

Source§

impl AsFormat for Astc10x5Unorm

Source§

const SELF: Format = Format::Astc10x5Unorm

Source§

impl AsFormat for Astc10x6Srgb

Source§

const SELF: Format = Format::Astc10x6Srgb

Source§

impl AsFormat for Astc10x6Unorm

Source§

const SELF: Format = Format::Astc10x6Unorm

Source§

impl AsFormat for Astc10x8Srgb

Source§

const SELF: Format = Format::Astc10x8Srgb

Source§

impl AsFormat for Astc10x8Unorm

Source§

const SELF: Format = Format::Astc10x8Unorm

Source§

impl AsFormat for Astc10x10Srgb

Source§

const SELF: Format = Format::Astc10x10Srgb

Source§

impl AsFormat for Astc10x10Unorm

Source§

const SELF: Format = Format::Astc10x10Unorm

Source§

impl AsFormat for Astc12x10Srgb

Source§

const SELF: Format = Format::Astc12x10Srgb

Source§

impl AsFormat for Astc12x10Unorm

Source§

const SELF: Format = Format::Astc12x10Unorm

Source§

impl AsFormat for Astc12x12Srgb

Source§

const SELF: Format = Format::Astc12x12Srgb

Source§

impl AsFormat for Astc12x12Unorm

Source§

const SELF: Format = Format::Astc12x12Unorm

Source§

impl AsFormat for B5g5r5a1Unorm

Source§

const SELF: Format = Format::B5g5r5a1Unorm

Source§

impl AsFormat for B5g6r5Unorm

Source§

const SELF: Format = Format::B5g6r5Unorm

Source§

impl AsFormat for B10g11r11Ufloat

Source§

const SELF: Format = Format::B10g11r11Ufloat

Source§

impl AsFormat for Bc1RgbSrgb

Source§

const SELF: Format = Format::Bc1RgbSrgb

Source§

impl AsFormat for Bc1RgbUnorm

Source§

const SELF: Format = Format::Bc1RgbUnorm

Source§

impl AsFormat for Bc1RgbaSrgb

Source§

const SELF: Format = Format::Bc1RgbaSrgb

Source§

impl AsFormat for Bc1RgbaUnorm

Source§

const SELF: Format = Format::Bc1RgbaUnorm

Source§

impl AsFormat for Bc2Srgb

Source§

const SELF: Format = Format::Bc2Srgb

Source§

impl AsFormat for Bc2Unorm

Source§

const SELF: Format = Format::Bc2Unorm

Source§

impl AsFormat for Bc3Srgb

Source§

const SELF: Format = Format::Bc3Srgb

Source§

impl AsFormat for Bc3Unorm

Source§

const SELF: Format = Format::Bc3Unorm

Source§

impl AsFormat for Bc4Snorm

Source§

const SELF: Format = Format::Bc4Snorm

Source§

impl AsFormat for Bc4Unorm

Source§

const SELF: Format = Format::Bc4Unorm

Source§

impl AsFormat for Bc5Snorm

Source§

const SELF: Format = Format::Bc5Snorm

Source§

impl AsFormat for Bc5Unorm

Source§

const SELF: Format = Format::Bc5Unorm

Source§

impl AsFormat for Bc6hSfloat

Source§

const SELF: Format = Format::Bc6hSfloat

Source§

impl AsFormat for Bc6hUfloat

Source§

const SELF: Format = Format::Bc6hUfloat

Source§

impl AsFormat for Bc7Srgb

Source§

const SELF: Format = Format::Bc7Srgb

Source§

impl AsFormat for Bc7Unorm

Source§

const SELF: Format = Format::Bc7Unorm

Source§

impl AsFormat for Bgr8Sint

Source§

const SELF: Format = Format::Bgr8Sint

Source§

impl AsFormat for Bgr8Snorm

Source§

const SELF: Format = Format::Bgr8Snorm

Source§

impl AsFormat for Bgr8Srgb

Source§

const SELF: Format = Format::Bgr8Srgb

Source§

impl AsFormat for Bgr8Sscaled

Source§

const SELF: Format = Format::Bgr8Sscaled

Source§

impl AsFormat for Bgr8Uint

Source§

const SELF: Format = Format::Bgr8Uint

Source§

impl AsFormat for Bgr8Unorm

Source§

const SELF: Format = Format::Bgr8Unorm

Source§

impl AsFormat for Bgr8Uscaled

Source§

const SELF: Format = Format::Bgr8Uscaled

Source§

impl AsFormat for Bgra4Unorm

Source§

const SELF: Format = Format::Bgra4Unorm

Source§

impl AsFormat for Bgra8Sint

Source§

const SELF: Format = Format::Bgra8Sint

Source§

impl AsFormat for Bgra8Snorm

Source§

const SELF: Format = Format::Bgra8Snorm

Source§

impl AsFormat for Bgra8Srgb

Source§

const SELF: Format = Format::Bgra8Srgb

Source§

impl AsFormat for Bgra8Sscaled

Source§

const SELF: Format = Format::Bgra8Sscaled

Source§

impl AsFormat for Bgra8Uint

Source§

const SELF: Format = Format::Bgra8Uint

Source§

impl AsFormat for Bgra8Unorm

Source§

const SELF: Format = Format::Bgra8Unorm

Source§

impl AsFormat for Bgra8Uscaled

Source§

const SELF: Format = Format::Bgra8Uscaled

Source§

impl AsFormat for D16Unorm

Source§

const SELF: Format = Format::D16Unorm

Source§

impl AsFormat for D16UnormS8Uint

Source§

const SELF: Format = Format::D16UnormS8Uint

Source§

impl AsFormat for D24UnormS8Uint

Source§

const SELF: Format = Format::D24UnormS8Uint

Source§

impl AsFormat for D32Sfloat

Source§

const SELF: Format = Format::D32Sfloat

Source§

impl AsFormat for D32SfloatS8Uint

Source§

const SELF: Format = Format::D32SfloatS8Uint

Source§

impl AsFormat for E5b9g9r9Ufloat

Source§

const SELF: Format = Format::E5b9g9r9Ufloat

Source§

impl AsFormat for EacR11Snorm

Source§

const SELF: Format = Format::EacR11Snorm

Source§

impl AsFormat for EacR11Unorm

Source§

const SELF: Format = Format::EacR11Unorm

Source§

impl AsFormat for EacR11g11Snorm

Source§

const SELF: Format = Format::EacR11g11Snorm

Source§

impl AsFormat for EacR11g11Unorm

Source§

const SELF: Format = Format::EacR11g11Unorm

Source§

impl AsFormat for Etc2R8g8b8Srgb

Source§

const SELF: Format = Format::Etc2R8g8b8Srgb

Source§

impl AsFormat for Etc2R8g8b8Unorm

Source§

const SELF: Format = Format::Etc2R8g8b8Unorm

Source§

impl AsFormat for Etc2R8g8b8a1Srgb

Source§

const SELF: Format = Format::Etc2R8g8b8a1Srgb

Source§

impl AsFormat for Etc2R8g8b8a1Unorm

Source§

const SELF: Format = Format::Etc2R8g8b8a1Unorm

Source§

impl AsFormat for Etc2R8g8b8a8Srgb

Source§

const SELF: Format = Format::Etc2R8g8b8a8Srgb

Source§

impl AsFormat for Etc2R8g8b8a8Unorm

Source§

const SELF: Format = Format::Etc2R8g8b8a8Unorm

Source§

impl AsFormat for R5g5b5a1Unorm

Source§

const SELF: Format = Format::R5g5b5a1Unorm

Source§

impl AsFormat for R5g6b5Unorm

Source§

const SELF: Format = Format::R5g6b5Unorm

Source§

impl AsFormat for R8Sint

Source§

const SELF: Format = Format::R8Sint

Source§

impl AsFormat for R8Snorm

Source§

const SELF: Format = Format::R8Snorm

Source§

impl AsFormat for R8Srgb

Source§

const SELF: Format = Format::R8Srgb

Source§

impl AsFormat for R8Sscaled

Source§

const SELF: Format = Format::R8Sscaled

Source§

impl AsFormat for R8Uint

Source§

const SELF: Format = Format::R8Uint

Source§

impl AsFormat for R8Unorm

Source§

const SELF: Format = Format::R8Unorm

Source§

impl AsFormat for R8Uscaled

Source§

const SELF: Format = Format::R8Uscaled

Source§

impl AsFormat for R16Sfloat

Source§

const SELF: Format = Format::R16Sfloat

Source§

impl AsFormat for R16Sint

Source§

const SELF: Format = Format::R16Sint

Source§

impl AsFormat for R16Snorm

Source§

const SELF: Format = Format::R16Snorm

Source§

impl AsFormat for R16Sscaled

Source§

const SELF: Format = Format::R16Sscaled

Source§

impl AsFormat for R16Uint

Source§

const SELF: Format = Format::R16Uint

Source§

impl AsFormat for R16Unorm

Source§

const SELF: Format = Format::R16Unorm

Source§

impl AsFormat for R16Uscaled

Source§

const SELF: Format = Format::R16Uscaled

Source§

impl AsFormat for R32Sfloat

Source§

const SELF: Format = Format::R32Sfloat

Source§

impl AsFormat for R32Sint

Source§

const SELF: Format = Format::R32Sint

Source§

impl AsFormat for R32Uint

Source§

const SELF: Format = Format::R32Uint

Source§

impl AsFormat for R64Sfloat

Source§

const SELF: Format = Format::R64Sfloat

Source§

impl AsFormat for R64Sint

Source§

const SELF: Format = Format::R64Sint

Source§

impl AsFormat for R64Uint

Source§

const SELF: Format = Format::R64Uint

Source§

impl AsFormat for Rg4Unorm

Source§

const SELF: Format = Format::Rg4Unorm

Source§

impl AsFormat for Rg8Sint

Source§

const SELF: Format = Format::Rg8Sint

Source§

impl AsFormat for Rg8Snorm

Source§

const SELF: Format = Format::Rg8Snorm

Source§

impl AsFormat for Rg8Srgb

Source§

const SELF: Format = Format::Rg8Srgb

Source§

impl AsFormat for Rg8Sscaled

Source§

const SELF: Format = Format::Rg8Sscaled

Source§

impl AsFormat for Rg8Uint

Source§

const SELF: Format = Format::Rg8Uint

Source§

impl AsFormat for Rg8Unorm

Source§

const SELF: Format = Format::Rg8Unorm

Source§

impl AsFormat for Rg8Uscaled

Source§

const SELF: Format = Format::Rg8Uscaled

Source§

impl AsFormat for Rg16Sfloat

Source§

const SELF: Format = Format::Rg16Sfloat

Source§

impl AsFormat for Rg16Sint

Source§

const SELF: Format = Format::Rg16Sint

Source§

impl AsFormat for Rg16Snorm

Source§

const SELF: Format = Format::Rg16Snorm

Source§

impl AsFormat for Rg16Sscaled

Source§

const SELF: Format = Format::Rg16Sscaled

Source§

impl AsFormat for Rg16Uint

Source§

const SELF: Format = Format::Rg16Uint

Source§

impl AsFormat for Rg16Unorm

Source§

const SELF: Format = Format::Rg16Unorm

Source§

impl AsFormat for Rg16Uscaled

Source§

const SELF: Format = Format::Rg16Uscaled

Source§

impl AsFormat for Rg32Sfloat

Source§

const SELF: Format = Format::Rg32Sfloat

Source§

impl AsFormat for Rg32Sint

Source§

const SELF: Format = Format::Rg32Sint

Source§

impl AsFormat for Rg32Uint

Source§

const SELF: Format = Format::Rg32Uint

Source§

impl AsFormat for Rg64Sfloat

Source§

const SELF: Format = Format::Rg64Sfloat

Source§

impl AsFormat for Rg64Sint

Source§

const SELF: Format = Format::Rg64Sint

Source§

impl AsFormat for Rg64Uint

Source§

const SELF: Format = Format::Rg64Uint

Source§

impl AsFormat for Rgb8Sint

Source§

const SELF: Format = Format::Rgb8Sint

Source§

impl AsFormat for Rgb8Snorm

Source§

const SELF: Format = Format::Rgb8Snorm

Source§

impl AsFormat for Rgb8Srgb

Source§

const SELF: Format = Format::Rgb8Srgb

Source§

impl AsFormat for Rgb8Sscaled

Source§

const SELF: Format = Format::Rgb8Sscaled

Source§

impl AsFormat for Rgb8Uint

Source§

const SELF: Format = Format::Rgb8Uint

Source§

impl AsFormat for Rgb8Unorm

Source§

const SELF: Format = Format::Rgb8Unorm

Source§

impl AsFormat for Rgb8Uscaled

Source§

const SELF: Format = Format::Rgb8Uscaled

Source§

impl AsFormat for Rgb16Sfloat

Source§

const SELF: Format = Format::Rgb16Sfloat

Source§

impl AsFormat for Rgb16Sint

Source§

const SELF: Format = Format::Rgb16Sint

Source§

impl AsFormat for Rgb16Snorm

Source§

const SELF: Format = Format::Rgb16Snorm

Source§

impl AsFormat for Rgb16Sscaled

Source§

const SELF: Format = Format::Rgb16Sscaled

Source§

impl AsFormat for Rgb16Uint

Source§

const SELF: Format = Format::Rgb16Uint

Source§

impl AsFormat for Rgb16Unorm

Source§

const SELF: Format = Format::Rgb16Unorm

Source§

impl AsFormat for Rgb16Uscaled

Source§

const SELF: Format = Format::Rgb16Uscaled

Source§

impl AsFormat for Rgb32Sfloat

Source§

const SELF: Format = Format::Rgb32Sfloat

Source§

impl AsFormat for Rgb32Sint

Source§

const SELF: Format = Format::Rgb32Sint

Source§

impl AsFormat for Rgb32Uint

Source§

const SELF: Format = Format::Rgb32Uint

Source§

impl AsFormat for Rgb64Sfloat

Source§

const SELF: Format = Format::Rgb64Sfloat

Source§

impl AsFormat for Rgb64Sint

Source§

const SELF: Format = Format::Rgb64Sint

Source§

impl AsFormat for Rgb64Uint

Source§

const SELF: Format = Format::Rgb64Uint

Source§

impl AsFormat for Rgba4Unorm

Source§

const SELF: Format = Format::Rgba4Unorm

Source§

impl AsFormat for Rgba8Sint

Source§

const SELF: Format = Format::Rgba8Sint

Source§

impl AsFormat for Rgba8Snorm

Source§

const SELF: Format = Format::Rgba8Snorm

Source§

impl AsFormat for Rgba8Srgb

Source§

const SELF: Format = Format::Rgba8Srgb

Source§

impl AsFormat for Rgba8Sscaled

Source§

const SELF: Format = Format::Rgba8Sscaled

Source§

impl AsFormat for Rgba8Uint

Source§

const SELF: Format = Format::Rgba8Uint

Source§

impl AsFormat for Rgba8Unorm

Source§

const SELF: Format = Format::Rgba8Unorm

Source§

impl AsFormat for Rgba8Uscaled

Source§

const SELF: Format = Format::Rgba8Uscaled

Source§

impl AsFormat for Rgba16Sfloat

Source§

const SELF: Format = Format::Rgba16Sfloat

Source§

impl AsFormat for Rgba16Sint

Source§

const SELF: Format = Format::Rgba16Sint

Source§

impl AsFormat for Rgba16Snorm

Source§

const SELF: Format = Format::Rgba16Snorm

Source§

impl AsFormat for Rgba16Sscaled

Source§

const SELF: Format = Format::Rgba16Sscaled

Source§

impl AsFormat for Rgba16Uint

Source§

const SELF: Format = Format::Rgba16Uint

Source§

impl AsFormat for Rgba16Unorm

Source§

const SELF: Format = Format::Rgba16Unorm

Source§

impl AsFormat for Rgba16Uscaled

Source§

const SELF: Format = Format::Rgba16Uscaled

Source§

impl AsFormat for Rgba32Sfloat

Source§

const SELF: Format = Format::Rgba32Sfloat

Source§

impl AsFormat for Rgba32Sint

Source§

const SELF: Format = Format::Rgba32Sint

Source§

impl AsFormat for Rgba32Uint

Source§

const SELF: Format = Format::Rgba32Uint

Source§

impl AsFormat for Rgba64Sfloat

Source§

const SELF: Format = Format::Rgba64Sfloat

Source§

impl AsFormat for Rgba64Sint

Source§

const SELF: Format = Format::Rgba64Sint

Source§

impl AsFormat for Rgba64Uint

Source§

const SELF: Format = Format::Rgba64Uint

Source§

impl AsFormat for S8Uint

Source§

const SELF: Format = Format::S8Uint

Source§

impl AsFormat for X8D24Unorm

Source§

const SELF: Format = Format::X8D24Unorm