mirror of
https://github.com/bevyengine/bevy
synced 2025-01-10 20:29:01 +00:00
1c23421f41
# Objective - wgpu 0.13 has validation to ensure that the width and height specified for a texture are both multiples of the respective block width and block height. This means validation fails for compressed textures with say a 4x4 block size, but non-modulo-4 image width/height. ## Solution - Using `Extent3d`'s `physical_size()` method in the `dds` loader. It takes a `TextureFormat` argument and ensures the resolution is correct. --- ## Changelog - Fixes: Validation failure for compressed textures stored in `dds` where the width/height are not a multiple of the block dimensions. |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml |