Desktop: Add rudimentary support for custom WGPU adapter selection (#3201)

* rudimentary custom wgpu adapter selection

* WgpuContextBuilder

* wasm fix

* fix wasm warnings

* Clean up

* Review suggestions

* fix
This commit is contained in:
Timon
2025-09-25 14:38:26 +00:00
committed by GitHub
parent 4e47b5db93
commit ed22e6a63d
8 changed files with 181 additions and 54 deletions

View File

@@ -143,7 +143,7 @@ impl WasmApplicationIo {
io
}
#[cfg(all(not(target_family = "wasm"), feature = "wgpu"))]
pub fn new_with_context(context: wgpu_executor::Context) -> Self {
pub fn new_with_context(context: wgpu_executor::WgpuContext) -> Self {
#[cfg(feature = "wgpu")]
let executor = WgpuExecutor::with_context(context);