bevy/crates/bevy_render/src/texture
Kanabenki 9cfada3f22
Detect cubemap for dds textures (#10222)
# Objective

- Closes #10049.
- Detect DDS texture containing a cubemap or a cubemap array.

## Solution

- When loading a dds texture, the header capabilities are checked for
the cubemap flag. An error is returned if not all faces are provided.

---

## Changelog

### Added

- Added a new texture error `TextureError::IncompleteCubemap`, used for
dds cubemap textures containing less than 6 faces, as that is not
supported on modern graphics APIs.

### Fixed

- DDS cubemaps are now loaded as cubemaps instead of 2D textures.

## Migration Guide

If you are matching on a `TextureError`, you will need to add a new
branch to handle `TextureError::IncompleteCubemap`.
2023-10-21 19:10:37 +00:00
..
basis.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
compressed_image_saver.rs Removed anyhow (#10003) 2023-10-06 07:20:13 +00:00
dds.rs Detect cubemap for dds textures (#10222) 2023-10-21 19:10:37 +00:00
exr_texture_loader.rs Removed anyhow (#10003) 2023-10-06 07:20:13 +00:00
fallback_image.rs Deferred Renderer (#9258) 2023-10-12 22:10:38 +00:00
hdr_texture_loader.rs Removed anyhow (#10003) 2023-10-06 07:20:13 +00:00
image_loader.rs Removed anyhow (#10003) 2023-10-06 07:20:13 +00:00
image_texture_conversion.rs Removed anyhow (#10003) 2023-10-06 07:20:13 +00:00
image.rs Detect cubemap for dds textures (#10222) 2023-10-21 19:10:37 +00:00
ktx2.rs ktx2: Fix Rgb8 -> Rgba8Unorm conversion (#9555) 2023-08-24 00:35:52 +00:00
mod.rs Deferred Renderer (#9258) 2023-10-12 22:10:38 +00:00
texture_cache.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00