![]() # 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. |
||
---|---|---|
.. | ||
basis.rs | ||
compressed_image_saver.rs | ||
dds.rs | ||
dynamic_texture_atlas_builder.rs | ||
exr_texture_loader.rs | ||
hdr_texture_loader.rs | ||
image_loader.rs | ||
image_texture_conversion.rs | ||
image.rs | ||
ktx2.rs | ||
lib.rs | ||
texture_atlas_builder.rs | ||
texture_atlas.rs |