Conversation
|
Maybe it's stupid question, but is there a workaround for this? |
2f8cefc to
ef74953
Compare
|
The work-around is as simple as adding an extra dependency on wgpu = { version = "27.0.1", default-features = true }I'll see if we could/should do that in eframe already somehow to make this easier |
|
Hey there @emilk , frame_template (with rust 1.88 and egui 0.33.0) with wgpu crashes on my M4 Mac (26.0.1). It has been doing this for a while. Glow works fine. Wgpu used to work. Steps:
|
|
For anyone running into this: the changes in this PR are what you need to apply. Alternatively, you can be more selective about the wgpu features per target: # native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.11"
wgpu = { version = "27", features = ["vulkan", "metal", "dx12"] }
# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
web-sys = "0.3.70" # to access the DOM (to hide the loading text)
wgpu = { version = "27", features = ["webgl"] }The bummer is that you need to make sure the wgpu version matches the version that eframe depends on, and that's not obvious without using tooling. But not a huge deal. |
Unfortunately, just switching
glowtowgpucauses build errors for web, and runtime errors on native.Apparently we also need to turn on some
wgpufeatures, but that… sucks. And it is not obvious from the eframe docs.This needs fixing.
Native
Web