Struct glium::texture::RawImage3d [] [src]

pub struct RawImage3d<'a, T: Clone + 'a> {
    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: Clone + 'a> RawImage3d<'a, T>
[src]

[src]

Transforms a Vec into a RawImage3d

Trait Implementations

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

The type of each pixel.

[src]

Returns the raw representation of the data.