Trait gfx::format::SurfaceTyped
[−]
[src]
pub trait SurfaceTyped { type DataType: Pod; fn get_surface_type() -> SurfaceType; }
Compile-time surface type trait.
Associated Types
Required Methods
fn get_surface_type() -> SurfaceType
Return the run-time value of the type.
Implementors
impl SurfaceTyped for D24_S8 type DataType = u32;
impl SurfaceTyped for R32_G32 type DataType = [u32; 2];
impl SurfaceTyped for R8_G8 type DataType = [u8; 2];
impl SurfaceTyped for B8_G8_R8_A8 type DataType = [u8; 4];
impl SurfaceTyped for R5_G5_B5_A1 type DataType = u16;
impl SurfaceTyped for R4_G4 type DataType = u8;
impl SurfaceTyped for R32_G32_B32 type DataType = [u32; 3];
impl SurfaceTyped for R32 type DataType = u32;
impl SurfaceTyped for R10_G10_B10_A2 type DataType = u32;
impl SurfaceTyped for R8 type DataType = u8;
impl SurfaceTyped for R5_G6_B5 type DataType = u16;
impl SurfaceTyped for D16 type DataType = F16;
impl SurfaceTyped for R11_G11_B10 type DataType = u32;
impl SurfaceTyped for R8_G8_B8_A8 type DataType = [u8; 4];
impl SurfaceTyped for R16_G16_B16_A16 type DataType = [u16; 4];
impl SurfaceTyped for R4_G4_B4_A4 type DataType = u16;
impl SurfaceTyped for R16_G16_B16 type DataType = [u16; 3];
impl SurfaceTyped for R16 type DataType = u16;
impl SurfaceTyped for R16_G16 type DataType = [u16; 2];
impl SurfaceTyped for R32_G32_B32_A32 type DataType = [u32; 4];
impl SurfaceTyped for D32 type DataType = f32;
impl SurfaceTyped for D24 type DataType = f32;