A runtime for multimedia wasm apps that runs native and in browsers.
^^^ SEE ACTUAL DEMO LINK JUST ABOVE. ^^^
Screenshot, which is close to half the size of the entire runtime and demo app combined, when everything is gzipped:
Build normal:
cargo build --target wasm32-unknown-unknown --release && \
cp target/wasm32-unknown-unknown/release/taca.wasm static/
Build optimized:
./build-opt.sh
Run native:
cargo run --release -- run docs/demo/apps/zig/hi.taca
Run web:
# First time: npm install -g http-server
https-server .
Open: http:https://127.0.0.1:8080/static/?app=../docs/demo/apps/zig/hi.taca
These files are copied and maybe modified from miniquad:
- static/gl.js
- static/index.html
Size on WGSL:
-rw-r--r-- 1 tom tom 957899 Jun 9 06:09 taca.opt.wasm
-rwxr-xr-x 2 tom tom 1062610 Jun 9 10:13 taca.wasm
...
-rw-r--r-- 1 tom tom 424 Jun 7 14:12 shader.wgsl
-rw-r--r-- 1 tom tom 226 Jun 7 14:12 shader.wgsl.gz
Size on SPIR-V:
-rw-r--r-- 1 tom tom 766449 Jun 9 10:58 taca.opt.wasm
-rwxr-xr-x 2 tom tom 852427 Jun 9 10:58 taca.wasm
...
-rw-r--r-- 1 tom tom 1056 Jun 9 10:55 shader.spv
-rw-r--r-- 1 tom tom 438 Jun 9 10:55 shader.spv.gz