wasm-bindgen/examples/raytrace-parallel
Alex Crichton 8cb792474c Fully update threading support for LLVM 9
Support has landed in rust-lang/rust for full support for LLVM 9's
interpretation of WebAssembly threads. This commit updates our thread
transformation pass to take all this into account, namely:

* The threadign pass now runs by default and is keyed on whether memory
  is shared, not off an env var.
* TLS is initialized in addition to memory on each thread.
* Stack pointer finding is tweaked to account for the TLS base also
  being a mutable global.
* The build of the parallel raytrace example was updated to use today's
  nightly.
2019-07-30 09:17:23 -07:00
..
src Update parallel raytrace example to use futures 2019-07-18 10:13:34 -07:00
.gitignore Implement the local JS snippets RFC 2019-03-05 08:00:47 -08:00
build.sh Fully update threading support for LLVM 9 2019-07-30 09:17:23 -07:00
Cargo.toml moved threadsafe futures implementation to a separate file, made updates after review 2019-07-17 00:48:00 +03:00
index.html Update idioms of a few examples 2019-02-19 13:27:30 -08:00
index.js Rewrite the parallel raytracing example with rayon 2019-06-13 06:48:53 -07:00
README.md docs: update docs link 2019-05-26 16:43:00 +09:00
worker.js Rewrite the parallel raytracing example with rayon 2019-06-13 06:48:53 -07:00
Xargo.toml Fully update threading support for LLVM 9 2019-07-30 09:17:23 -07:00

Parallel Raytracing

View documentation for this example online or View compiled example online

You can build the example locally with:

$ ./build.sh

(or running the commands on Windows manually)

and then visiting http://localhost:8080 in a browser should run the example!