Add support for partial GPU texture updates

Mainly used for font atlas changes. Each glyph allocation now only
triggers a partial texture update instead of creating a full new
texture.
This commit is contained in:
meehl committed 2026-09-01 10:17:34 +02:00
1 parent e3288b96ac
commit e90396ff28
7 files changed
+326 -162

No files matched your search

+4 -5
View File
@@ -88,11 +88,10 @@ impl App {
let stage_output = self.stage.frame()?;
if let Some(font_image_delta) = self.fonts.borrow_mut().font_atlas_delta() {
self.texture_manager
.borrow()
.update_font_texture(font_image_delta);
}
let font_image_delta = self.fonts.borrow_mut().font_atlas_delta();
self.texture_manager
.borrow()
.update_font_texture(font_image_delta);
let textures_delta = self.texture_manager.borrow().take_delta();