pub trait Texture2dDataSource<'a> {
    type Data: Send + Copy + Clone + 'a;

    // Required method
    fn into_raw(self) -> RawImage2d<'a, Self::Data>;
}
Expand description

Trait that describes data for a two-dimensional texture.

Required Associated Types§

source

type Data: Send + Copy + Clone + 'a

The type of each pixel.

Required Methods§

source

fn into_raw(self) -> RawImage2d<'a, Self::Data>

Returns the raw representation of the data.

Implementations on Foreign Types§

source§

impl<'a, P: PixelValue + Clone> Texture2dDataSource<'a> for Vec<Vec<P>>

§

type Data = P

source§

fn into_raw(self) -> RawImage2d<'a, P>

Implementors§

source§

impl<'a, P: PixelValue + Clone> Texture2dDataSource<'a> for RawImage2d<'a, P>

§

type Data = P