Remove surface and window from ApplicationIo (#3941)

* Remove surface and window from ApplicationIo

* Seperate Wasm and Native ApplicationIo

* Fix warnings

* Fix tests

* Remove redundant PlatformApplicationIo::new_offscreen

* Fixup

* Remove unused From implementaitions for ApplicationIo
This commit is contained in:
Timon
2026-04-09 20:12:53 +00:00
committed by GitHub
parent b100892bfa
commit 661e8bc569
36 changed files with 716 additions and 773 deletions
+6 -2
View File
@@ -7,9 +7,9 @@ authors = ["Graphite Authors <contact@graphite.art>"]
license = "MIT OR Apache-2.0"
[features]
default = ["wasm", "wgpu"]
default = ["wgpu"]
gpu = []
wgpu = ["gpu", "graph-craft/wgpu", "graphene-application-io/wgpu"]
wgpu = ["gpu", "graph-craft/wgpu", "graphene-application-io/wgpu", "graphene-canvas-utils?/wgpu"]
wasm = [
"wasm-bindgen",
"wasm-bindgen-futures",
@@ -24,6 +24,7 @@ wasm = [
"vector-nodes/wasm",
"graphene-core/wasm",
"graph-craft/wasm",
"dep:graphene-canvas-utils"
]
image-compare = []
vello = ["gpu"]
@@ -61,6 +62,9 @@ image = { workspace = true }
base64 = { workspace = true }
wgpu = { workspace = true }
# Optional local dependencies
graphene-canvas-utils = { workspace = true, optional = true }
# Optional workspace dependencies
wasm-bindgen = { workspace = true, optional = true }
wasm-bindgen-futures = { workspace = true, optional = true }