bevy/crates/bevy_gltf/src
robtfm b30ff2ab76
allow asset loader pre-registration (#9429)
# Objective

- When loading gltf files during app creation (for example using a
FromWorld impl and adding that as a resource), no loader was found.
- As the gltf loader can load compressed formats, it needs to know what
the GPU supports so it's not available at app creation time.

## Solution

alternative to #9426

- add functionality to preregister the loader. loading assets with
matching extensions will block until a real loader is registered.
- preregister "gltf" and "glb".
- prereigster image formats.

the way this is set up, if a set of extensions are all registered with a
single preregistration call, then later a loader is added that matches
some of the extensions, assets using the remaining extensions will then
fail. i think that should work well for image formats that we don't know
are supported until later.
2023-08-14 21:27:51 +00:00
..
lib.rs allow asset loader pre-registration (#9429) 2023-08-14 21:27:51 +00:00
loader.rs Add GltfLoader::new. (#9120) 2023-07-13 23:54:59 +00:00
vertex_attributes.rs Add support for custom glTF vertex attributes. (#5370) 2023-04-24 14:20:13 +00:00