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 std::sync::{Arc, LazyLock};
use wgui::parser::parse_color_hex;
use wgui::renderer_vk::text::{FontWeight, TextStyle};
@@ -57,6 +57,8 @@ where
taffy::style::Style::DEFAULT,
);
panel.layout.update(vec2(2048., 2048.), 0.0)?;
Ok(OverlayData {
state: OverlayState {
name: ANCHOR_NAME.clone(),