Replace iced_web with WebGL support in wgpu 🎉
This commit is contained in:
parent
1e3feee3a3
commit
825c7749ff
35 changed files with 68 additions and 3474 deletions
19
src/lib.rs
19
src/lib.rs
|
|
@ -208,29 +208,18 @@ pub mod window;
|
|||
)]
|
||||
pub mod time;
|
||||
|
||||
#[cfg(all(
|
||||
not(target_arch = "wasm32"),
|
||||
not(feature = "glow"),
|
||||
feature = "wgpu"
|
||||
))]
|
||||
#[cfg(all(not(feature = "glow"), feature = "wgpu"))]
|
||||
use iced_winit as runtime;
|
||||
|
||||
#[cfg(all(not(target_arch = "wasm32"), feature = "glow"))]
|
||||
#[cfg(feature = "glow")]
|
||||
use iced_glutin as runtime;
|
||||
|
||||
#[cfg(all(
|
||||
not(target_arch = "wasm32"),
|
||||
not(feature = "glow"),
|
||||
feature = "wgpu"
|
||||
))]
|
||||
#[cfg(all(not(feature = "glow"), feature = "wgpu"))]
|
||||
use iced_wgpu as renderer;
|
||||
|
||||
#[cfg(all(not(target_arch = "wasm32"), feature = "glow"))]
|
||||
#[cfg(feature = "glow")]
|
||||
use iced_glow as renderer;
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
use iced_web as runtime;
|
||||
|
||||
#[doc(no_inline)]
|
||||
pub use widget::*;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue