blob: b582cfafab2f53a7a4007ffde90e3c08014ec313 [file] [view]
## WebGL Demo
Uses Vello GPU with a native WebGL2 backend in the browser. This example does not use wgpu.
## Development
Run with `RUSTFLAGS="-Ctarget-feature=+simd128" cargo run_wasm -p native_webgl --release`.
If you don't want to enable SIMD, you can remove the `RUSTFLAGS="-Ctarget-feature=+simd128"` part.
## Testing
In order to test this crate, you need to have [`wasm-pack`] installed. Install it using
the steps found in https://wasm-bindgen.github.io/wasm-pack/installer/.
Thereafter, for interactive test sessions, run:
```
wasm-pack test --chrome
# Navigate to printed URL
```
[`wasm-pack`]: https://wasm-bindgen.github.io/wasm-pack/