![]() # Objective - Allow compressed image formats to be used with `ImagePlugin` and `GltfPlugin` in cases where there is no `RenderDevice` resource. (For example, when using a custom render backend) ## Solution - Define a `CompressedImageFormatSupport` component that allows the user to explicitly determine which formats are supported. ~~Not sure if this is the best solution. Alternatively, I considered initializing CompressedImageFormatSupport from render device features separately, it would need to run after the render device is initialized but before `ImagePlugin` and `GltfPlugin` finish. Not sure where the best place for that to happen would be.~~ Update: decided on going with @greeble-dev solution: defining the `CompressedImageFormatSupport` resource in `bevy_image`, but letting `bevy_render` register the resource value. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT |