tree: c3ebf261769871fc161f0459ca19fc2ca5f17331 [search]
  1. src/
  2. tests/
  3. Cargo.toml
  4. README.md
vello_gpu/examples/native_webgl/README.md

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