Enum amethyst_renderer::TextureData[][src]

pub enum TextureData {
    Image(ImageDataTextureMetadata),
    Rgba([f32; 4]TextureMetadata),
    F32(Vec<f32>, TextureMetadata),
    F64(Vec<f64>, TextureMetadata),
    U8(Vec<u8>, TextureMetadata),
    U16(Vec<u16>, TextureMetadata),
    U32(Vec<u32>, TextureMetadata),
    U64(Vec<u64>, TextureMetadata),
}

Texture data for loading

Variants

Image data

Color

Float data

Float data

Byte data

Byte data

Byte data

Byte data

Methods

impl TextureData
[src]

Creates texture data from color.

Trait Implementations

impl Debug for TextureData
[src]

Formats the value using the given formatter. Read more

impl Clone for TextureData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<[f32; 4]> for TextureData
[src]

Performs the conversion.

impl From<[f32; 3]> for TextureData
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for TextureData

impl Sync for TextureData