Skip to content

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
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.

3 participants