Docs.rs
gfx-hal-0.1.0
gfx-hal 0.1.0
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
kvark
grovesNL
Dependencies
bitflags ^1.0
normal
failure ^0.1
normal
fxhash ^0.2.1
normal
mint ^0.5
normal
serde ^1
normal
Versions
100%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
AsFormat
Required Associated Constants
SELF
Implementations on Foreign Types
[f32; 2]
[f32; 3]
[f32; 4]
f32
Implementors
In gfx_hal::format
?
Trait
gfx_hal
::
format
::
AsFormat
source
·
[
−
]
pub trait AsFormat { const
SELF
:
Format
; }
Expand description
Conversion trait into
Format
;
Required Associated Constants
source
const
SELF
:
Format
Associated format.
Implementations on Foreign Types
source
impl
AsFormat
for
f32
source
const
SELF
:
Format
= Format::R32Float
source
impl
AsFormat
for [
f32
;
2
]
source
const
SELF
:
Format
= Format::Rg32Float
source
impl
AsFormat
for [
f32
;
3
]
source
const
SELF
:
Format
= Format::Rgb32Float
source
impl
AsFormat
for [
f32
;
4
]
source
const
SELF
:
Format
= Format::Rgba32Float
Implementors
source
impl
AsFormat
for
A1r5g5b5Unorm
source
const
SELF
:
Format
= Format::A1r5g5b5Unorm
source
impl
AsFormat
for
A2b10g10r10Inorm
source
const
SELF
:
Format
= Format::A2b10g10r10Inorm
source
impl
AsFormat
for
A2b10g10r10Int
source
const
SELF
:
Format
= Format::A2b10g10r10Int
source
impl
AsFormat
for
A2b10g10r10Iscaled
source
const
SELF
:
Format
= Format::A2b10g10r10Iscaled
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
A2r10g10b10Inorm
source
const
SELF
:
Format
= Format::A2r10g10b10Inorm
source
impl
AsFormat
for
A2r10g10b10Int
source
const
SELF
:
Format
= Format::A2r10g10b10Int
source
impl
AsFormat
for
A2r10g10b10Iscaled
source
const
SELF
:
Format
= Format::A2r10g10b10Iscaled
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
Abgr8Inorm
source
const
SELF
:
Format
= Format::Abgr8Inorm
source
impl
AsFormat
for
Abgr8Int
source
const
SELF
:
Format
= Format::Abgr8Int
source
impl
AsFormat
for
Abgr8Iscaled
source
const
SELF
:
Format
= Format::Abgr8Iscaled
source
impl
AsFormat
for
Abgr8Srgb
source
const
SELF
:
Format
= Format::Abgr8Srgb
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
Bc4Inorm
source
const
SELF
:
Format
= Format::Bc4Inorm
source
impl
AsFormat
for
Bc4Unorm
source
const
SELF
:
Format
= Format::Bc4Unorm
source
impl
AsFormat
for
Bc5Inorm
source
const
SELF
:
Format
= Format::Bc5Inorm
source
impl
AsFormat
for
Bc5Unorm
source
const
SELF
:
Format
= Format::Bc5Unorm
source
impl
AsFormat
for
Bc6hFloat
source
const
SELF
:
Format
= Format::Bc6hFloat
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
Bgr8Inorm
source
const
SELF
:
Format
= Format::Bgr8Inorm
source
impl
AsFormat
for
Bgr8Int
source
const
SELF
:
Format
= Format::Bgr8Int
source
impl
AsFormat
for
Bgr8Iscaled
source
const
SELF
:
Format
= Format::Bgr8Iscaled
source
impl
AsFormat
for
Bgr8Srgb
source
const
SELF
:
Format
= Format::Bgr8Srgb
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
Bgra8Inorm
source
const
SELF
:
Format
= Format::Bgra8Inorm
source
impl
AsFormat
for
Bgra8Int
source
const
SELF
:
Format
= Format::Bgra8Int
source
impl
AsFormat
for
Bgra8Iscaled
source
const
SELF
:
Format
= Format::Bgra8Iscaled
source
impl
AsFormat
for
Bgra8Srgb
source
const
SELF
:
Format
= Format::Bgra8Srgb
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
D32Float
source
const
SELF
:
Format
= Format::D32Float
source
impl
AsFormat
for
D32FloatS8Uint
source
const
SELF
:
Format
= Format::D32FloatS8Uint
source
impl
AsFormat
for
E5b9g9r9Ufloat
source
const
SELF
:
Format
= Format::E5b9g9r9Ufloat
source
impl
AsFormat
for
EacR11Inorm
source
const
SELF
:
Format
= Format::EacR11Inorm
source
impl
AsFormat
for
EacR11Unorm
source
const
SELF
:
Format
= Format::EacR11Unorm
source
impl
AsFormat
for
EacR11g11Inorm
source
const
SELF
:
Format
= Format::EacR11g11Inorm
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
R8Inorm
source
const
SELF
:
Format
= Format::R8Inorm
source
impl
AsFormat
for
R8Int
source
const
SELF
:
Format
= Format::R8Int
source
impl
AsFormat
for
R8Iscaled
source
const
SELF
:
Format
= Format::R8Iscaled
source
impl
AsFormat
for
R8Srgb
source
const
SELF
:
Format
= Format::R8Srgb
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
R16Float
source
const
SELF
:
Format
= Format::R16Float
source
impl
AsFormat
for
R16Inorm
source
const
SELF
:
Format
= Format::R16Inorm
source
impl
AsFormat
for
R16Int
source
const
SELF
:
Format
= Format::R16Int
source
impl
AsFormat
for
R16Iscaled
source
const
SELF
:
Format
= Format::R16Iscaled
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
R32Float
source
const
SELF
:
Format
= Format::R32Float
source
impl
AsFormat
for
R32Int
source
const
SELF
:
Format
= Format::R32Int
source
impl
AsFormat
for
R32Uint
source
const
SELF
:
Format
= Format::R32Uint
source
impl
AsFormat
for
R64Float
source
const
SELF
:
Format
= Format::R64Float
source
impl
AsFormat
for
R64Int
source
const
SELF
:
Format
= Format::R64Int
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
Rg8Inorm
source
const
SELF
:
Format
= Format::Rg8Inorm
source
impl
AsFormat
for
Rg8Int
source
const
SELF
:
Format
= Format::Rg8Int
source
impl
AsFormat
for
Rg8Iscaled
source
const
SELF
:
Format
= Format::Rg8Iscaled
source
impl
AsFormat
for
Rg8Srgb
source
const
SELF
:
Format
= Format::Rg8Srgb
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
Rg16Float
source
const
SELF
:
Format
= Format::Rg16Float
source
impl
AsFormat
for
Rg16Inorm
source
const
SELF
:
Format
= Format::Rg16Inorm
source
impl
AsFormat
for
Rg16Int
source
const
SELF
:
Format
= Format::Rg16Int
source
impl
AsFormat
for
Rg16Iscaled
source
const
SELF
:
Format
= Format::Rg16Iscaled
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
Rg32Float
source
const
SELF
:
Format
= Format::Rg32Float
source
impl
AsFormat
for
Rg32Int
source
const
SELF
:
Format
= Format::Rg32Int
source
impl
AsFormat
for
Rg32Uint
source
const
SELF
:
Format
= Format::Rg32Uint
source
impl
AsFormat
for
Rg64Float
source
const
SELF
:
Format
= Format::Rg64Float
source
impl
AsFormat
for
Rg64Int
source
const
SELF
:
Format
= Format::Rg64Int
source
impl
AsFormat
for
Rg64Uint
source
const
SELF
:
Format
= Format::Rg64Uint
source
impl
AsFormat
for
Rgb8Inorm
source
const
SELF
:
Format
= Format::Rgb8Inorm
source
impl
AsFormat
for
Rgb8Int
source
const
SELF
:
Format
= Format::Rgb8Int
source
impl
AsFormat
for
Rgb8Iscaled
source
const
SELF
:
Format
= Format::Rgb8Iscaled
source
impl
AsFormat
for
Rgb8Srgb
source
const
SELF
:
Format
= Format::Rgb8Srgb
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
Rgb16Float
source
const
SELF
:
Format
= Format::Rgb16Float
source
impl
AsFormat
for
Rgb16Inorm
source
const
SELF
:
Format
= Format::Rgb16Inorm
source
impl
AsFormat
for
Rgb16Int
source
const
SELF
:
Format
= Format::Rgb16Int
source
impl
AsFormat
for
Rgb16Iscaled
source
const
SELF
:
Format
= Format::Rgb16Iscaled
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
Rgb32Float
source
const
SELF
:
Format
= Format::Rgb32Float
source
impl
AsFormat
for
Rgb32Int
source
const
SELF
:
Format
= Format::Rgb32Int
source
impl
AsFormat
for
Rgb32Uint
source
const
SELF
:
Format
= Format::Rgb32Uint
source
impl
AsFormat
for
Rgb64Float
source
const
SELF
:
Format
= Format::Rgb64Float
source
impl
AsFormat
for
Rgb64Int
source
const
SELF
:
Format
= Format::Rgb64Int
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
Rgba8Inorm
source
const
SELF
:
Format
= Format::Rgba8Inorm
source
impl
AsFormat
for
Rgba8Int
source
const
SELF
:
Format
= Format::Rgba8Int
source
impl
AsFormat
for
Rgba8Iscaled
source
const
SELF
:
Format
= Format::Rgba8Iscaled
source
impl
AsFormat
for
Rgba8Srgb
source
const
SELF
:
Format
= Format::Rgba8Srgb
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
Rgba16Float
source
const
SELF
:
Format
= Format::Rgba16Float
source
impl
AsFormat
for
Rgba16Inorm
source
const
SELF
:
Format
= Format::Rgba16Inorm
source
impl
AsFormat
for
Rgba16Int
source
const
SELF
:
Format
= Format::Rgba16Int
source
impl
AsFormat
for
Rgba16Iscaled
source
const
SELF
:
Format
= Format::Rgba16Iscaled
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
Rgba32Float
source
const
SELF
:
Format
= Format::Rgba32Float
source
impl
AsFormat
for
Rgba32Int
source
const
SELF
:
Format
= Format::Rgba32Int
source
impl
AsFormat
for
Rgba32Uint
source
const
SELF
:
Format
= Format::Rgba32Uint
source
impl
AsFormat
for
Rgba64Float
source
const
SELF
:
Format
= Format::Rgba64Float
source
impl
AsFormat
for
Rgba64Int
source
const
SELF
:
Format
= Format::Rgba64Int
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