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

run-wasm helper (cargo-run-wasm) for testing the wgpu runner on the web. #1016

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

eddyb
Copy link
Contributor

@eddyb eddyb commented Mar 22, 2023

Opening as draft because this is blocked on wgpu::backend::web being completely broken:

TODO(@eddyb): consider hot reloading.

EDIT: blocked on:


EDIT: this is now possible thanks to:

Had to work around some sRGB complications (and push constants) but it finally works!

  • cargo run-wasm --package example-runner-wgpu --bin wgpu_runner
    • (defaults to serving the result of the build on http://localhost:8000)
  • google-chrome-unstable --enable-features=Vulkan --enable-unsafe-webgpu http://localhost:8000

image

@eddyb

This comment was marked as resolved.

@eddyb eddyb added the s: blocked PRs blocked on external factors. label Mar 27, 2023
@eddyb eddyb changed the title [WIP] run-wasm helper (cargo-run-wasm) for testing the wgpu runner on the web. run-wasm helper (cargo-run-wasm) for testing the wgpu runner on the web. Apr 15, 2023
@eddyb eddyb force-pushed the run-wasm branch 2 times, most recently from 13f622c to 93d3a57 Compare April 18, 2023 17:05
@eddyb
Copy link
Contributor Author

eddyb commented Apr 18, 2023

I added PushConstant-as-read-only-StorageBuffer emulation, and using that and #1018 I get:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s: blocked PRs blocked on external factors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants