summaryrefslogtreecommitdiff
path: root/examples/wgpu-slang-wasm/index.html
diff options
context:
space:
mode:
authorAnders Leino <aleino@nvidia.com>2025-01-07 19:50:46 +0200
committerGitHub <noreply@github.com>2025-01-07 17:50:46 +0000
commit7e278c3ad6eaedbce1d6b6babecbe32f1764b269 (patch)
treea0104d783ac9cea78bc256df68a6693708ac4a9c /examples/wgpu-slang-wasm/index.html
parent7d4142e6aca5257602a7d82db5625adbb6fbc832 (diff)
Add example showing how to use Slang/WASM (#5996)
This closes #5656.
Diffstat (limited to 'examples/wgpu-slang-wasm/index.html')
-rw-r--r--examples/wgpu-slang-wasm/index.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/wgpu-slang-wasm/index.html b/examples/wgpu-slang-wasm/index.html
new file mode 100644
index 000000000..b03d8366b
--- /dev/null
+++ b/examples/wgpu-slang-wasm/index.html
@@ -0,0 +1,12 @@
+<html>
+ <head>
+ <title>WebGPU Triangle using Slang WASM</title>
+ <script src="example.js"></script>
+ </head>
+ <body>
+ <center>
+ <canvas width="512" height="512"></canvas>
+ </center>
+ <script src="slang-wasm.js"></script>
+ </body>
+</html>