Enum amethyst_renderer::TextureData [−][src]
pub enum TextureData { Image(ImageData, TextureMetadata), 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(ImageData, TextureMetadata)
Image data
Rgba([f32; 4], TextureMetadata)
Color
F32(Vec<f32>, TextureMetadata)
Float data
F64(Vec<f64>, TextureMetadata)
Float data
U8(Vec<u8>, TextureMetadata)
Byte data
U16(Vec<u16>, TextureMetadata)
Byte data
U32(Vec<u32>, TextureMetadata)
Byte data
U64(Vec<u64>, TextureMetadata)
Byte data
Methods
impl TextureData
[src]
impl TextureData
Trait Implementations
impl Debug for TextureData
[src]
impl Debug for TextureData
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for TextureData
[src]
impl Clone for TextureData
fn clone(&self) -> TextureData
[src]
fn clone(&self) -> TextureData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<[f32; 4]> for TextureData
[src]
impl From<[f32; 4]> for TextureData
impl From<[f32; 3]> for TextureData
[src]
impl From<[f32; 3]> for TextureData
Auto Trait Implementations
impl Send for TextureData
impl Send for TextureData
impl Sync for TextureData
impl Sync for TextureData