Crate amethyst_assets [−] [src]
Asset management crate. Designed with the following goals in mind:
- asynchronous & parallel using rayon and futures
- allow different stores
Error type returned when loading an asset.
A future for an asset
A specifier for an asset, uniquely identifying it by
A boxed error implementing
A basic implementation for a cache. This might be useful as the
The asset loader, holding the contexts,
the default (directory) store and a reference to the
Shared version of error
A simple implementation of the
Represents a future value of an asset. This future may be
added to the ECS world, where the responsible system can poll it and merge
it into the persistent storage once it is
A unique store id, used to identify the storage in
Combined error type which is produced when loading an
asset. This error does not include information which asset
failed to load. For that, please look at
An error type which cannot be instantiated. Used as a placeholder for associated error types if something cannot fail.
One of the three core traits of this crate.
The context type which manages assets of one type. It is responsible for caching
A format, providing a conversion from bytes to asset data, which is then
in turn accepted by
A trait for asset stores, which provides methods for loading
Loads an asset with a given context, format, specifier and storage right now.