-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add initial wasm support #527
Conversation
cosmic-text is now changed to the upstream version which doesn't have stretto |
Looks good to me now! Although I tried to run webgpu example but my Chrome complains about the wgsl. Does it run properly for you? |
Thanks for noticing, I can reproduce it. I had other problems with Chrome before, so I mostly tested on Firefox nightly (on Linux). I'll look into these.
|
lapce/vger-rs#16 fixes this problem for me. |
Few things I would like to point out:
|
* Add initial wasm support * Bump web-time version * Run cargo fmt * Fix webgpu example * Fix clippy warning * Switch to latest floem-winit commit * Fix conditional import in keyboard.rs * Fix webgpu example * Automatically follow canvas size by default * Remove unused import * Remove unused import * Use latest floem-vger from git
vello w/ gradients and brush override vello chnages. before parley attempt parley Revert "attempt parley" This reverts commit 851ae9d8067e1ec570bed4fa865980f6b10ba33b. wip updates wip wip wip new vello fixed lapce#554 (lapce#555) - fixed tab navigation wrapping the tab button - fixed lapce#554 Add SignalGet SignalWith SignalUpdate traits (lapce#558) * Add SignalGet SignalWith SignalUpdate traits * fix doc * fix Linux make SignalUpdate non panic Add initial wasm support (lapce#527) * Add initial wasm support * Bump web-time version * Run cargo fmt * Fix webgpu example * Fix clippy warning * Switch to latest floem-winit commit * Fix conditional import in keyboard.rs * Fix webgpu example * Automatically follow canvas size by default * Remove unused import * Remove unused import * Use latest floem-vger from git add get/update from fn (lapce#559) * add get/update from fn * update radio buttons and example * Add stack ext trait * update dropdown * change custom constructors return self to allow custom styles * fix flight booker * fix other examples * better support for simple closure input * fix clippy rename SignalWith track method (lapce#562) * rename SignalWith track method * add SignalTrack trait Keyframe Animations (lapce#563) * add keyframed animations * Make animations reactive and stackable * remove old files * fix bezier * add reactive animation state control * remove animation message comment * improve easing * clippy * add delay * Fix transition on layout props * Fix animate towards default * fix animation view state * fix animation view state again * fix clippy * remove old comment * fix clippy 2
vello w/ gradients and brush override vello chnages. before parley attempt parley Revert "attempt parley" This reverts commit 851ae9d8067e1ec570bed4fa865980f6b10ba33b. wip updates wip wip wip new vello fixed lapce#554 (lapce#555) - fixed tab navigation wrapping the tab button - fixed lapce#554 Add SignalGet SignalWith SignalUpdate traits (lapce#558) * Add SignalGet SignalWith SignalUpdate traits * fix doc * fix Linux make SignalUpdate non panic Add initial wasm support (lapce#527) * Add initial wasm support * Bump web-time version * Run cargo fmt * Fix webgpu example * Fix clippy warning * Switch to latest floem-winit commit * Fix conditional import in keyboard.rs * Fix webgpu example * Automatically follow canvas size by default * Remove unused import * Remove unused import * Use latest floem-vger from git add get/update from fn (lapce#559) * add get/update from fn * update radio buttons and example * Add stack ext trait * update dropdown * change custom constructors return self to allow custom styles * fix flight booker * fix other examples * better support for simple closure input * fix clippy rename SignalWith track method (lapce#562) * rename SignalWith track method * add SignalTrack trait Keyframe Animations (lapce#563) * add keyframed animations * Make animations reactive and stackable * remove old files * fix bezier * add reactive animation state control * remove animation message comment * improve easing * clippy * add delay * Fix transition on layout props * Fix animate towards default * fix animation view state * fix animation view state again * fix clippy * remove old comment * fix clippy 2
* Add initial wasm support * Bump web-time version * Run cargo fmt * Fix webgpu example * Fix clippy warning * Switch to latest floem-winit commit * Fix conditional import in keyboard.rs * Fix webgpu example * Automatically follow canvas size by default * Remove unused import * Remove unused import * Use latest floem-vger from git
Add initial support to run floem applications on the web using WASM and WebGPU. This only works on browsers that support WebGPU. WebGL2 via wgpu does not work because vger-rs uses storage buffers in its shaders which is not supported on WebGL2. Haven't looked into whether tinyskia can be made to work on the web.
Before this PR can be merged, the following changes need to land in
winit
andcosmic-text
first: