Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

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

Closed
eddyb wants to merge 4 commits into
EmbarkStudios:mainfrom
LykenSol:run-wasm
Closed

run-wasm helper (cargo-run-wasm) for testing the wgpu runner on the web.#1016
eddyb wants to merge 4 commits into
EmbarkStudios:mainfrom
LykenSol:run-wasm

Conversation

@eddyb
Copy link
Copy Markdown
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
Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

s: blocked PRs blocked on external factors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants