bevy/crates/bevy_ui/src/render
ickshonpe 26ea38e4a6
Remove the entity index from the UI phase's sort key (#18273)
# Objective

The sort key for the transparent UI phase is a (float32, u32) pair
consisting of the stack index and the render entity's index.
I guess the render entity index was intended to break ties but it's not
needed as the sort is stable. It also assumes the indices of the render
entities are generated sequentially, which isn't guaranteed.

Fixes the issues with the text wrap example seen in #18266

## Solution

Change the sort key to just use the stack index alone.
2025-03-12 17:11:02 +00:00
..
box_shadow.rs Remove the entity index from the UI phase's sort key (#18273) 2025-03-12 17:11:02 +00:00
box_shadow.wgsl Remove the Globals binding from the box shadow shader (#16177) 2024-10-30 20:06:15 +00:00
debug_overlay.rs Store UI render target info locally per node (#17579) 2025-02-10 07:27:58 +00:00
mod.rs Remove the entity index from the UI phase's sort key (#18273) 2025-03-12 17:11:02 +00:00
pipeline.rs Only use physical coords internally in bevy_ui (#16375) 2024-11-22 00:45:07 +00:00
render_pass.rs Remove the entity index from the UI phase's sort key (#18273) 2025-03-12 17:11:02 +00:00
ui_material_pipeline.rs Remove the entity index from the UI phase's sort key (#18273) 2025-03-12 17:11:02 +00:00
ui_material.wgsl UI material border radius (#15171) 2025-01-28 04:54:48 +00:00
ui_texture_slice_pipeline.rs Remove the entity index from the UI phase's sort key (#18273) 2025-03-12 17:11:02 +00:00
ui_texture_slice.wgsl Fix some duplicate words in docs/comments (#15980) 2024-10-20 01:03:27 +00:00
ui_vertex_output.wgsl UI material border radius (#15171) 2025-01-28 04:54:48 +00:00
ui.wgsl Revert #17631 (#17660) 2025-02-03 19:01:15 +00:00