Trait gfx::format::SurfaceTyped[][src]

pub trait SurfaceTyped {
    type DataType: Pod;
    pub fn get_surface_type() -> SurfaceType;
}

Compile-time surface type trait.

Associated Types

type DataType: Pod[src]

The corresponding data type to be passed from CPU.

Loading content...

Required methods

pub fn get_surface_type() -> SurfaceType[src]

Return the run-time value of the type.

Loading content...

Implementors

impl SurfaceTyped for B8_G8_R8_A8[src]

impl SurfaceTyped for BC1_R8_G8_B8[src]

impl SurfaceTyped for BC3_R8_G8_B8_A8[src]

impl SurfaceTyped for D16[src]

impl SurfaceTyped for D24[src]

impl SurfaceTyped for D24_S8[src]

impl SurfaceTyped for D32[src]

impl SurfaceTyped for R4_G4[src]

impl SurfaceTyped for R4_G4_B4_A4[src]

impl SurfaceTyped for R5_G5_B5_A1[src]

impl SurfaceTyped for R5_G6_B5[src]

impl SurfaceTyped for R8[src]

impl SurfaceTyped for R8_G8[src]

impl SurfaceTyped for R8_G8_B8_A8[src]

impl SurfaceTyped for R10_G10_B10_A2[src]

impl SurfaceTyped for R11_G11_B10[src]

impl SurfaceTyped for R16[src]

impl SurfaceTyped for R16_G16[src]

impl SurfaceTyped for R16_G16_B16[src]

impl SurfaceTyped for R16_G16_B16_A16[src]

impl SurfaceTyped for R32[src]

impl SurfaceTyped for R32_G32[src]

impl SurfaceTyped for R32_G32_B32[src]

impl SurfaceTyped for R32_G32_B32_A32[src]

Loading content...