Skip to content

Conversation

@schell
Copy link
Owner

@schell schell commented Aug 29, 2025

This adds proper test infrastructure for WASM tests (through wasm-bindgen-test).

  • adds an axum server to supply tests with static files from test_img, as well as the ability to diff images and save to the filesystem.
  • adds an xtask command and cargo alias, xtask test-wasm to run WASM tests
  • removes futures_lite, except from tests, as calling futures_lite::future::block_on on web panics
  • changes Context API to be async
  • reading images from GPU is now async
  • changes the example-wasm to load the fox glb, helipad hdr skybox and have some UI (still needs tweaking which will happen in a follow-up PR)
  • fixes a bug where naga was flipping the y axis on all vertex shaders
  • adds tutorial shaders for progressive WASM tests
  • adds WASM tests
  • fixes a bug where SPIR-V shaders would not transpile to WGSL when renderling is built outside of its repo workspace
  • adds WASM tests to github workflows I spent way too much time thrashing against CI trying to provision a browser on Ubuntu that will run the tests. It's local only for now.

Fixes #196.

@schell schell marked this pull request as ready for review August 31, 2025 05:34
@schell schell changed the title fix: WIP test infra for WASM fix: test infra for WASM Aug 31, 2025
@schell schell merged commit 8493bcc into main Sep 1, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants