swapchain sizes from content size

This commit is contained in:
galister
2025-06-20 01:40:09 +09:00
parent 6a77b302c9
commit d1e3f51b8a
5 changed files with 16 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
use glam::Vec3A;
use glam::{Vec3A, vec2};
use wgui::{
parser::parse_color_hex,
taffy::{
@@ -52,6 +52,8 @@ where
lerp: 1.0,
};
panel.layout.update(vec2(2048., 2048.), 0.0)?;
Ok(OverlayData {
state: OverlayState {
name: WATCH_NAME.into(),