Struct nannou::ui::backend::glium::glium::texture::RawImage3d[][src]

pub struct RawImage3d<'a, T> where
    T: 'a + Clone
{ pub data: Cow<'a, [T]>, pub width: u32, pub height: u32, pub depth: u32, pub format: ClientFormat, }

Represents raw data for a two-dimensional image.

Fields

A contiguous array of pixel data.

data.len() must be equal to width * height * depth * format.get_size() / mem::size_of::<T>().

Number of pixels per column.

Number of pixels per row.

Number of pixels per depth.

Formats of the pixels.

Methods

impl<'a, T> RawImage3d<'a, T> where
    T: 'a + Clone
[src]

Transforms a Vec into a RawImage3d

Trait Implementations

impl<'a, P> Texture3dDataSource<'a> for RawImage3d<'a, P> where
    P: PixelValue + Clone
[src]

The type of each pixel.

Returns the raw representation of the data.

Auto Trait Implementations

impl<'a, T> Send for RawImage3d<'a, T> where
    T: Send + Sync

impl<'a, T> Sync for RawImage3d<'a, T> where
    T: Sync