Trait gfx::format::SurfaceTyped

source ·
pub trait SurfaceTyped {
    type DataType: Pod;

    // Required method
    fn get_surface_type() -> SurfaceType;
}
Expand description

Compile-time surface type trait.

Required Associated Types§

source

type DataType: Pod

The corresponding data type to be passed from CPU.

Required Methods§

source

fn get_surface_type() -> SurfaceType

Return the run-time value of the type.

Implementors§