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 TextureDataTrait Implementations
impl Debug for TextureData[src]
impl Debug for TextureDatafn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for TextureData[src]
impl Clone for TextureDatafn clone(&self) -> TextureData[src]
fn clone(&self) -> TextureDataReturns 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 TextureDataimpl From<[f32; 3]> for TextureData[src]
impl From<[f32; 3]> for TextureDataimpl<'a> PrefabData<'a> for TextureData[src]
impl<'a> PrefabData<'a> for TextureDatatype SystemData = (ReadExpect<'a, Loader>, Read<'a, AssetStorage<Texture>>)
SystemData needed to perform the load
type Result = Handle<Texture>
The result type returned by the load operation
fn load_prefab(
&self,
_: Entity,
system_data: &mut Self::SystemData,
_: &[Entity]
) -> StdResult<Handle<Texture>, PrefabError>[src]
fn load_prefab(
&self,
_: Entity,
system_data: &mut Self::SystemData,
_: &[Entity]
) -> StdResult<Handle<Texture>, PrefabError>Load the data for this prefab onto the given Entity Read more
fn trigger_sub_loading(
&mut self,
_progress: &mut ProgressCounter,
_system_data: &mut Self::SystemData
) -> Result<bool, Error>[src]
fn trigger_sub_loading(
&mut self,
_progress: &mut ProgressCounter,
_system_data: &mut Self::SystemData
) -> Result<bool, Error>Trigger asset loading for any sub assets. Read more
Auto Trait Implementations
impl Send for TextureData
impl Send for TextureDataimpl Sync for TextureData
impl Sync for TextureData