Desktop: Window resize handling on Windows (#3167)

* Native window resize on windows

* Fix linux build

* Fix windows build

* try clean up

* clean up

* Add module comment

* FIx

* Review improvements

* Improve
This commit is contained in:
Timon
2025-09-15 05:15:31 -07:00
committed by GitHub
parent da330b6dd0
commit ab55b3225d
6 changed files with 381 additions and 16 deletions

View File

@@ -41,7 +41,7 @@ vello = { workspace = true }
derivative = { workspace = true }
rfd = { workspace = true }
open = { workspace = true }
rand = { workspace = true }
rand = { workspace = true, features = ["thread_rng"] }
serde = { workspace = true }
# Hardware acceleration dependencies
@@ -49,12 +49,17 @@ ash = { version = "0.38", optional = true }
# Windows-specific dependencies
[target.'cfg(windows)'.dependencies]
windows = { version = "0.58", features = [
windows = { version = "0.58.0", features = [
"Win32_Foundation",
"Win32_Graphics_Direct3D11",
"Win32_Graphics_Direct3D12",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
"Win32_Foundation"
"Win32_Graphics_Dwm",
"Win32_Graphics_Gdi",
"Win32_System_LibraryLoader",
"Win32_UI_Controls",
"Win32_UI_WindowsAndMessaging",
], optional = true }
# macOS-specific dependencies