Cargo Features
[dependencies]
egui-wgpu = { version = "0.30.0", default-features = false, features = ["winit", "wayland", "x11", "fragile-send-sync-non-atomic-wasm"] }
- default = fragile-send-sync-non-atomic-wasm
-
The
fragile-send-sync-non-atomic-wasm
feature is set by default wheneveregui-wgpu
is added without
somewhere in the dependency tree.default-features = false - winit
-
Enable
winit
integration. On Linux, requires eitherwayland
orx11
Optional dependencies:
Affects
egui-wgpu::winit
… - wayland
-
Enables Wayland support for winit.
- x11
-
Enables x11 support for winit.
- fragile-send-sync-non-atomic-wasm default
-
Make the renderer
Sync
on wasm, exploiting that by default wasm isn't multithreaded. It may make code easier, expecially when targeting both native and web. On native most wgpu objects are send and sync, on the web they are not (by nature of the WebGPU specification). This is not supported in multithreaded WASM. Thus that usage is guarded against with compiler errors in wgpu.Enables fragile-send-sync-non-atomic-wasm of wgpu