Cargo Features
[dependencies]
egui-wgpu = { version = "0.34.1", default-features = false, features = ["capture", "winit", "wayland", "x11", "fragile-send-sync-non-atomic-wasm", "macos-window-resize-jitter-fix"] }
- default = fragile-send-sync-non-atomic-wasm, macos-window-resize-jitter-fix
-
These default features are set whenever
egui-wgpuis added withoutsomewhere in the dependency tree.default-features = false wgpu:
Enables the GLES backend on WebAssembly only.
- capture winit?
-
Enables the
capturemodule for capturing screenshots.Enables egui
Optional dependencies:
Affects
egui-wgpu::capture… - winit = capture
-
Enable
winitintegration. On Linux, requires eitherwaylandorx11Affects
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
Syncon wasm, exploiting that by default wasm isn't multithreaded. It may make code easier, especially 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
- macos-window-resize-jitter-fix default
-
Enables
present_with_transactionsurface flag temporary during window resize on MacOS.