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:
1 parent
e3288b96ac
commit
e90396ff28
7 files changed
+326
-162
No files matched your search
+4
-5
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user