/wgpu-experiments

Some experiments while learning wgpu.

Primary LanguageRust

WGPU experiments

Some experiments with wpgu and wasm. Built with nix.

A lot of this material is taken directly from learn-wgpu.

Requirements

This project requires nix with flakes enabled.

Development

Locally

nix develop
cargo run

Web

nix develop
cargo watch -i .gitignore -i "www/*" -s "wasm-pack build renderer/ --out-dir ../www/pkg --target web"

In another terminal, run the development server:

cd www; npm run dev