Desktop add viewport texture (#2953)

* Allow rendering viewport texture beneath ui texture

* Add viewport scale

* Update desktop/src/render/fullscreen_texture.wgsl

---------

Co-authored-by: Dennis Kobert <dennis@kobert.dev>
This commit is contained in:
Timon
2025-07-28 17:10:27 +00:00
committed by GitHub
co-authored by Dennis Kobert
parent 83d39fb320
commit 6119dea58c
5 changed files with 94 additions and 18 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ impl ApplicationHandler<CustomEvent> for WinitApp {
match event {
CustomEvent::UiUpdate(texture) => {
if let Some(graphics_state) = self.graphics_state.as_mut() {
graphics_state.bind_texture(&texture);
graphics_state.bind_ui_texture(&texture);
graphics_state.resize(texture.width(), texture.height());
}
if let Some(window) = &self.window {