Trait gfx::format::SurfaceTyped []

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

Compile-time surface type trait.

Associated Types

type DataType: Copy

The corresponding data type to be passed from CPU.

Required Methods

fn get_surface_type() -> SurfaceType

Return the run-time value of the type.

Implementors