Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
c122939
Added extraction module with ExtractedUiNodeGeometry type and a skele…
ickshonpe Jul 29, 2026
60ae4f3
Add camera refs
ickshonpe Jul 29, 2026
30c1006
Remove border as already in ComputedNode
ickshonpe Jul 29, 2026
faf4dc2
Renamed extraction module to extract_geometry.
ickshonpe Jul 29, 2026
37a806c
fix module import
ickshonpe Jul 29, 2026
79974d3
Move removal to end of extract_uinode_geometry
ickshonpe Jul 29, 2026
66430e6
Store camera on ExtractedUiNodeGeometry
ickshonpe Jul 29, 2026
ca4fa9a
Fixed removal detection
ickshonpe Jul 29, 2026
39423fd
Added extract_uinode_geometry to ExtractSchedule
ickshonpe Jul 29, 2026
f2301d9
Update camera map
ickshonpe Jul 29, 2026
0bfebb1
Added camera sync checking to debug system
ickshonpe Jul 29, 2026
7c476eb
added init for ExtractedUiGeometries resource
ickshonpe Jul 29, 2026
168eb3c
clean up
ickshonpe Jul 29, 2026
c314781
Change extract_ui_material_nodes to use extracted geometry
ickshonpe Jul 29, 2026
8a1c7ee
update materials map
ickshonpe Jul 29, 2026
cdbfc1a
updated queue_uinodes function
ickshonpe Jul 29, 2026
c4a4423
update prepare_uimaterial_nodes
ickshonpe Jul 29, 2026
5922a51
Check render_entity against item entity in prepare_uimaterial_nodes.
ickshonpe Jul 29, 2026
c119f9d
updated ui_texture_slice_pipeline to use the extracted geometry
ickshonpe Jul 29, 2026
11b9bc1
Removed unneeded fields from ExtractedBoxShadow
ickshonpe Jul 29, 2026
7e60461
Updated box_shadow module.
ickshonpe Jul 29, 2026
354b536
removed extract_uinode_geometry_debug system from schedule
ickshonpe Jul 29, 2026
48dccf5
updated gradient module to use extracted geometry, like with shadows …
ickshonpe Jul 29, 2026
3652fdc
New ExtractedUiNode and ExtractedGlyphLayout types to replace the old…
ickshonpe Jul 29, 2026
dd23426
Removed unused
ickshonpe Jul 29, 2026
8cbbfb2
Added new text extraction buffer
ickshonpe Jul 29, 2026
ff3485e
Moved text, borders , backgrounds, and outlines to using extracted ge…
ickshonpe Jul 29, 2026
1289f42
Renamings geometry to layout
ickshonpe Jul 29, 2026
80f96e1
Fix uinode query, removed AnyOf
ickshonpe Jul 29, 2026
330893c
more tweaks
ickshonpe Jul 29, 2026
be8ca66
fixed double UiMeta writes
ickshonpe Jul 29, 2026
3b2a379
Remove unused render system sets
ickshonpe Jul 29, 2026
967b049
fix removed cleared
ickshonpe Jul 29, 2026
90e8d57
fixed gradients bugs missing removals
ickshonpe Jul 29, 2026
4e002cd
Added From<BorderColor> for [LinearRgba; 4] impl
ickshonpe Jul 30, 2026
a6d54fe
single extract
ickshonpe Jul 30, 2026
f02c406
enabled debug overlay
ickshonpe Jul 30, 2026
42a24b0
Added skeleton for new prepare
ickshonpe Jul 31, 2026
a8027c3
cleanup
ickshonpe Jul 31, 2026
410fffb
comments and renamings
ickshonpe Jul 31, 2026
53d60fe
Removed old prepare_uinodes
ickshonpe Jul 31, 2026
8081002
delete prepare from debug_overlay
ickshonpe Jul 31, 2026
e2ac948
renaming
ickshonpe Jul 31, 2026
ef0894b
Improved batching
ickshonpe Jul 31, 2026
78aed9e
renamed extract_uinode_background_colors
ickshonpe Jul 31, 2026
02dfd5d
cleanup further
ickshonpe Jul 31, 2026
c6ba7b4
Add debug_overlay queue function
ickshonpe Aug 1, 2026
b58d835
One phase item per camera debug overlay
ickshonpe Aug 3, 2026
89ed5b9
Renamed UiDebugOptions -> UiDebugOutline
ickshonpe Aug 3, 2026
3488686
completed generate_debug_layer_quads
ickshonpe Aug 3, 2026
b53efaa
GlobalUiDebugOptions -> UiDebugOverlay
ickshonpe Aug 3, 2026
e2714a1
store changed shadows in extracted_box_shadows
ickshonpe Aug 3, 2026
4479517
track changed in ExtractedGradients, not locally in system
ickshonpe Aug 3, 2026
2c5c59c
Made changed_this_frame chagnes for materials and slicers
ickshonpe Aug 3, 2026
31017d2
ExtractedUiNodeStyles changed -> changed_this_frame
ickshonpe Aug 3, 2026
88c2c4e
Cleanup, Extract UiStack resource
ickshonpe Aug 3, 2026
7e04135
Merge branch 'main' into extracted-ui-layout-merge
ickshonpe Aug 3, 2026
7cfc24c
fix rwmode stuff
ickshonpe Aug 3, 2026
5304357
Removed old text prepare
ickshonpe Aug 3, 2026
fe9e1c3
rename generate_*_quads fns to push_*_vertices
ickshonpe Aug 3, 2026
e2e93d2
Removed unused imports
ickshonpe Aug 3, 2026
1daba58
Fixed debug outlines for hidden and clipped nodes.
ickshonpe Aug 3, 2026
5dd9f25
Fixed visibility by checking the visible flag in the extracted layout…
ickshonpe Aug 3, 2026
08597bb
use [line_width; 4] instead of repeating four times
ickshonpe Aug 3, 2026
3bce767
extend texture range for debug outlines
ickshonpe Aug 3, 2026
b783f2a
store only indices where textures are changed in UiMeta, so batches c…
ickshonpe Aug 3, 2026
f078451
migrated prepare_uinodes to use new texture changes list
ickshonpe Aug 3, 2026
6808026
Removed SetUiTextureBindGroup
ickshonpe Aug 3, 2026
3e16dc9
prepare_uinodes batch_open flag
ickshonpe Aug 3, 2026
ec99b86
Made UiBatch exclusively range driven
ickshonpe Aug 3, 2026
d3c0614
added get helper on ExtractedUiNodeStyles
ickshonpe Aug 3, 2026
b1c75e6
added get_style method to ExtractedUiNodeStyles
ickshonpe Aug 3, 2026
01441c8
reordered comparisons ltr
ickshonpe Aug 3, 2026
cb921bb
removed redundant comparison
ickshonpe Aug 3, 2026
01906d2
added `UiBatch::empty` helper
ickshonpe Aug 3, 2026
77f502c
cleanup and consolidate existing batch unwraps
ickshonpe Aug 3, 2026
4587b52
associate cameras and debug overlays
ickshonpe Aug 3, 2026
200f916
Close the current texture range at each batch boundary.
ickshonpe Aug 3, 2026
233aea1
simplify debug overlay rendering params
ickshonpe Aug 3, 2026
84a91c4
Formatting
ickshonpe Aug 3, 2026
59a0d02
apply scale factor to debug overlay's line width
ickshonpe Aug 3, 2026
615e234
Removed extract_uinode_geometry_debug
ickshonpe Aug 3, 2026
8e6f434
Only extracted debug overlay once per camera view
ickshonpe Aug 3, 2026
6bf515c
lookup debug overlay ids before phase item loop
ickshonpe Aug 3, 2026
2f2d7d3
Order ExtractGradient between ExtractTextureSlice and ExtractText
ickshonpe Aug 3, 2026
49a67d1
clear stale gradients from the gradients index map
ickshonpe Aug 3, 2026
2294bbd
renamed variables for consistancy
ickshonpe Aug 3, 2026
0171dc1
use a Or<(With<Text>, With<EditableText>)> query filter in extract_te…
ickshonpe Aug 3, 2026
f4ce6c5
Huge combined batch in many_buttons doing too many image lookups duri…
ickshonpe Aug 3, 2026
75b4ead
moved push_text_vertices into text module
ickshonpe Aug 3, 2026
64dbf44
look up image only if needed
ickshonpe Aug 3, 2026
5629240
split up push_text_vertices
ickshonpe Aug 3, 2026
6fd9db8
cache pipeline specialization and camera lookup in queue_text
ickshonpe Aug 3, 2026
0ba8a50
Removed redundant UiBatch::range
ickshonpe Aug 3, 2026
e35560d
Removed redundant fields from ExtractedUiNodeLayout
ickshonpe Aug 3, 2026
c630c50
fixed debug overlay fallback image
ickshonpe Aug 3, 2026
e2b3df2
Early return from prepare if the extraction buffers are empty.
ickshonpe Aug 6, 2026
99fd735
retain uinode phaseitems
ickshonpe Aug 6, 2026
e97ae0d
Fixed imports
ickshonpe Aug 6, 2026
ffd1f70
skip prepare slices if no slices
ickshonpe Aug 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion crates/bevy_ui/src/ui_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{
ComputedStackIndex, ContentSize, FocusPolicy, UiRect, Val, Val2,
};
use bevy_camera::{visibility::Visibility, Camera, RenderTarget};
use bevy_color::{Alpha, Color};
use bevy_color::{Alpha, Color, LinearRgba};
use bevy_derive::{Deref, DerefMut};
use bevy_ecs::{prelude::*, system::SystemParam};
use bevy_math::{BVec2, Rect, UVec2, Vec2, Vec4, Vec4Swizzles};
Expand Down Expand Up @@ -2306,6 +2306,17 @@ impl Default for BorderColor {
}
}

impl From<BorderColor> for [LinearRgba; 4] {
fn from(value: BorderColor) -> Self {
[
value.top.to_linear(),
value.right.to_linear(),
value.bottom.to_linear(),
value.left.to_linear(),
]
}
}

#[derive(Component, Copy, Clone, Debug, PartialEq, Reflect)]
#[reflect(Component, Default, Debug, PartialEq, Clone)]
#[cfg_attr(
Expand Down
Loading