halmark |
|
|
raw-gles.em.html |
|
431 |
raw-gles.rs |
This example shows interop with raw GLES contexts -
the ability to hook up wgpu-hal to an existing context and draw into it.
Emscripten build:
1. install emsdk
2. build this example with cargo:
EMCC_CFLAGS="-g -s ERROR_ON_UNDEFINED_SYMBOLS=0 --no-entry -s FULL_ES3=1" cargo build --example raw-gles --target wasm32-unknown-emscripten
3. copy raw-gles.em.html into target directory and open it in browser:
cp wgpu-hal/examples/raw-gles.em.html target/wasm32-unknown-emscripten/debug/examples |
12976 |
ray-traced-triangle |
|
|