bevy/crates/bevy_render/src
Robert Swain caa61c5fb7 bevy_render: Fix KTX2 UASTC format mapping (#4569)
# Objective

- KTX2 UASTC format mapping was incorrect. For some reason I had written it to map to a set of data formats based on the count of KTX2 sample information blocks, but the mapping should be done based on the channel type in the sample information.
- This is a valid change pulled out from #4514 as the attempt to fix the array textures there was incorrect

## Solution

- Fix the KTX2 UASTC `DataFormat` enum to contain the correct formats based on the channel types in section 3.10.2 of https://github.khronos.org/KTX-Specification/ (search for "Basis Universal UASTC Format")
- Correctly map from the sample information channel type to `DataFormat`
- Correctly configure transcoding and the resulting texture format based on the `DataFormat`

---

## Changelog

- Fixed: KTX2 UASTC format handling
2022-06-17 00:14:02 +00:00
..
camera Refactor Camera methods and add viewport rect (#4948) 2022-06-07 15:23:45 +00:00
color Clippy improvements (#4665) 2022-05-31 01:38:07 +00:00
mesh bevy_render: Add attributes and attributes_mut methods to Mesh. (#3927) 2022-06-15 06:29:52 +00:00
primitives Faster assign lights to clusters (#4345) 2022-04-15 02:53:20 +00:00
render_graph Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
render_phase Camera Driven Viewports (#4898) 2022-06-05 00:27:49 +00:00
render_resource Fix wasm examples (#4967) 2022-06-11 20:10:13 +00:00
renderer diagnostics: meaningful error when graph node has wrong number of inputs (#4924) 2022-06-06 15:47:52 +00:00
texture bevy_render: Fix KTX2 UASTC format mapping (#4569) 2022-06-17 00:14:02 +00:00
view Parallel Frustum Culling (#4489) 2022-06-14 02:07:40 +00:00
extract_component.rs ExtractResourcePlugin (#3745) 2022-05-30 18:36:03 +00:00
extract_resource.rs ExtractResourcePlugin (#3745) 2022-05-30 18:36:03 +00:00
lib.rs Change default Image FilterMode to Linear (#4465) 2022-06-11 09:13:37 +00:00
render_asset.rs Clippy improvements (#4665) 2022-05-31 01:38:07 +00:00
settings.rs bevy_render: Use RenderDevice to get limits/features and expose AdapterInfo (#3931) 2022-02-16 21:17:37 +00:00