summaryrefslogtreecommitdiff
path: root/examples/wgpu-html5/index.html
diff options
context:
space:
mode:
authorAnders Leino <aleino@nvidia.com>2024-12-30 11:42:25 +0200
committerGitHub <noreply@github.com>2024-12-30 11:42:25 +0200
commit89dd2b1278f9e457d9d343742a51de27502ebca1 (patch)
tree22899e27c4131d86f395d2c501d92a694eb6a137 /examples/wgpu-html5/index.html
parentb2d51adc4b433c44298d35bb19637496c99ce44b (diff)
Add a basic WebGPU example (#5923)
* Add a basic WebGPU example This helps to address #5656. * Use serial await rather than Promise.all
Diffstat (limited to 'examples/wgpu-html5/index.html')
-rw-r--r--examples/wgpu-html5/index.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/wgpu-html5/index.html b/examples/wgpu-html5/index.html
new file mode 100644
index 000000000..975a8c65f
--- /dev/null
+++ b/examples/wgpu-html5/index.html
@@ -0,0 +1,15 @@
+<html>
+ <head>
+ <title>WebGPU Triangle</title>
+ <script src="example.js"></script>
+ </head>
+ <body>
+ <center>
+ <canvas width="512" height="512"></canvas>
+ </center>
+ <script type="text/javascript">
+ const canvas = document.querySelector("canvas");
+ Example.initialize(canvas);
+ </script>
+ </body>
+</html>