Docs.rs
gfx-hal-0.9.0
gfx-hal 0.9.0
Docs.rs crate page
MIT OR Apache-2.0
Links
Homepage
Documentation
Repository
Crates.io
Source
Owners
kvark
grovesNL
Dependencies
bitflags ^1.0
normal
external-memory ^0.0.1
normal
naga ^0.5
normal
raw-window-handle ^0.3
normal
serde ^1
normal
thiserror ^1
normal
gfx-backend-empty ^0.9
dev
Versions
100%
of the crate is documented
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
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
;
Associated Constants
source
const
SELF
:
Format
Associated format.
Implementations on Foreign Types
source
impl
AsFormat
for
f32
source
const
SELF
:
Format
source
impl
AsFormat
for
[
f32
; 2]
source
const
SELF
:
Format
source
impl
AsFormat
for
[
f32
; 3]
source
const
SELF
:
Format
source
impl
AsFormat
for
[
f32
; 4]
source
const
SELF
:
Format
Implementors
source
impl
AsFormat
for
A1r5g5b5Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
A2b10g10r10Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
A2b10g10r10Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
A2b10g10r10Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
A2b10g10r10Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
A2b10g10r10Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
A2b10g10r10Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
A2r10g10b10Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
A2r10g10b10Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
A2r10g10b10Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
A2r10g10b10Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
A2r10g10b10Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
A2r10g10b10Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Abgr8Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Abgr8Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Abgr8Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Abgr8Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Abgr8Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Abgr8Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Abgr8Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc4x4Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc4x4Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc5x4Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc5x4Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc5x5Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc5x5Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc6x5Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc6x5Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc6x6Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc6x6Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc8x5Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc8x5Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc8x6Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc8x6Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc8x8Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc8x8Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc10x5Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc10x5Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc10x6Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc10x6Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc10x8Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc10x8Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc10x10Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc10x10Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc12x10Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc12x10Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc12x12Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Astc12x12Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
B5g5r5a1Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
B5g6r5Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
B10g11r11Ufloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc1RgbSrgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc1RgbUnorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc1RgbaSrgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc1RgbaUnorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc2Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc2Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc3Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc3Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc4Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc4Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc5Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc5Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc6hSfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc6hUfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc7Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Bc7Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgr8Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgr8Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgr8Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgr8Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgr8Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgr8Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgr8Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgra4Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgra8Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgra8Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgra8Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgra8Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgra8Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgra8Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Bgra8Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
D16Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
D16UnormS8Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
D24UnormS8Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
D32Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
D32SfloatS8Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
E5b9g9r9Ufloat
source
const
SELF
:
Format
source
impl
AsFormat
for
EacR11Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
EacR11Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
EacR11g11Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
EacR11g11Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Etc2R8g8b8Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Etc2R8g8b8Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Etc2R8g8b8a1Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Etc2R8g8b8a1Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Etc2R8g8b8a8Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Etc2R8g8b8a8Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
R5g5b5a1Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
R5g6b5Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
R8Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
R8Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
R8Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
R8Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
R8Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
R8Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
R8Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
R16Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
R16Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
R16Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
R16Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
R16Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
R16Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
R16Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
R32Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
R32Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
R32Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
R64Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
R64Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
R64Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg4Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg8Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg8Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg8Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg8Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg8Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg8Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg8Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg16Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg16Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg16Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg16Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg16Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg16Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg16Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg32Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg32Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg32Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg64Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg64Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rg64Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb8Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb8Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb8Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb8Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb8Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb8Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb8Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb16Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb16Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb16Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb16Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb16Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb16Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb16Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb32Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb32Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb32Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb64Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb64Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgb64Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba4Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba8Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba8Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba8Srgb
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba8Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba8Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba8Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba8Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba16Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba16Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba16Snorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba16Sscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba16Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba16Unorm
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba16Uscaled
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba32Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba32Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba32Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba64Sfloat
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba64Sint
source
const
SELF
:
Format
source
impl
AsFormat
for
Rgba64Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
S8Uint
source
const
SELF
:
Format
source
impl
AsFormat
for
X8D24Unorm
source
const
SELF
:
Format