Enum amethyst_renderer::TexturePrefab[][src]

pub enum TexturePrefab<F> where
    F: Format<Texture, Options = TextureMetadata>, 
{ Data(TextureData), File(String, F, TextureMetadata), Handle(Handle<Texture>), }

PrefabData for loading Textures.

Will not add any Components to the Entity, will only return a Handle

Type parameters:

  • F: Format to use for loading the Textures from file

Variants

Texture data

Load file with format

Clone handle only

Trait Implementations

impl<F: Debug> Debug for TexturePrefab<F> where
    F: Format<Texture, Options = TextureMetadata>, 
[src]

Formats the value using the given formatter. Read more

impl<F: Clone> Clone for TexturePrefab<F> where
    F: Format<Texture, Options = TextureMetadata>, 
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, F> PrefabData<'a> for TexturePrefab<F> where
    F: Format<Texture, Options = TextureMetadata> + Clone + Sync
[src]

SystemData needed to perform the load

The result type returned by the load operation

Load the data for this prefab onto the given Entity Read more

Trigger asset loading for any sub assets. Read more

Auto Trait Implementations

impl<F> Send for TexturePrefab<F>

impl<F> Sync for TexturePrefab<F> where
    F: Sync