File: using_webassembly.md

package info (click to toggle)
vtk9 9.5.2%2Bdfsg4-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 206,640 kB
  • sloc: cpp: 2,340,827; ansic: 327,116; python: 114,881; yacc: 4,104; java: 3,977; sh: 3,032; xml: 2,771; perl: 2,189; lex: 1,787; javascript: 1,261; makefile: 194; objc: 153; tcl: 59
file content (21 lines) | stat: -rw-r--r-- 1,661 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Using WebAssembly

VTK-Wasm is a prototype infrastructure that enables the compilation of VTK C++ code to WebAssembly via Emscripten. This feature is still under active development.

To learn more about VTK-Wasm and its capabilities, please take a look at the following resources:

* [Homepage for VTK.wasm](https://kitware.github.io/vtk-wasm/)

* [Examples of WebAssembly applications that use VTK for rendering.](https://gitlab.kitware.com/vtk/vtk/-/tree/master/Examples/Emscripten/Cxx)

* [A collection of VTK WebAssembly demos.](https://github.com/Kitware/vtk-wasm-demos)

* [A guide on using the experimental WebGPU feature in VTK-Wasm.](https://discourse.vtk.org/t/guide-how-do-i-use-vtk-wasm-webgpu-experimental-feature/11164).

* [Instructions for building VTK using Emscripten for WebAssembly.](../advanced/build_wasm_emscripten.md)

* [vtk-wasm-sdk](https://gitlab.kitware.com/vtk/vtk-wasm-sdk) for building and publishing the [`kitware/vtk-wasm-sdk`](https://hub.docker.com/r/kitware/vtk-wasm-sdk) docker images.

* [Deep dive into WebAssembly & WebGPU in VTK: presentation from April 28th, 2023](https://docs.google.com/presentation/d/1Nl0TVa55616QKCSHP54BoYBvByMKe6lIUl6IFZqSeJo/edit#slide=id.p). This presentation covers topics such as Emscripten, VTK-wasm Docker image, WASM Dev tools, VTK and WebGPU: PolyData Mapper, API inspection with RenderDoc, and performance profiles.

We welcome your feedback and contributions to this project. Feel free to share your experiences, questions, and ideas in the [web/vtk-wasm](https://discourse.vtk.org/c/web/vtk-wasm/12) category of the VTK Discourse forum. Stay tuned for updates and new developments!