Skip to content
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

Support wasm target for clock example #2422

Closed

Conversation

skygrango
Copy link
Contributor

@skygrango skygrango commented May 3, 2024

base on #2421

Fix the env loading problem by enabling wasm-bindgen feature with instant

problem : it failed on firefox
log : https://gist.github.com/skygrango/6561e1a77a147c664f62ab2fef248a74

<wgpu::backend::wgpu_core::ContextWgpuCore as wgpu::context::Context>::device_create_render_pipeline::he39460428393c56b https://127.0.0.1:8080/clock-c25483e98ad88e58_bg.wasm:4833636
<T as wgpu::context::DynContext>::device_create_render_pipeline::h77fdafe577d5f84d https://127.0.0.1:8080/clock-c25483e98ad88e58_bg.wasm:17303843`

I don't know how to fix it, maybe something wrong with widget/canvas

it almost work on chrome, except for drawing text
螢幕截圖_20240503_142518-1

@hecrj
Copy link
Member

hecrj commented Sep 10, 2024

Thanks! But the clock example already compiles to Wasm in master.

@hecrj hecrj closed this Sep 10, 2024
@hecrj hecrj added this to the 0.13 milestone Sep 10, 2024
@hecrj hecrj added feature New feature or request documentation addition labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants