Skip to content

Commit

Permalink
add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed May 14, 2024
1 parent c626039 commit 9b900c0
Show file tree
Hide file tree
Showing 5 changed files with 858 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ import { createTextureFromImage } from 'webgpu-utils';
* [cube-map](examples/cube-map.html)
* [instancing](examples/instancing.html)
* [primitives](examples/primitives.html)
* [stencil](examples/stencil.html)
* [stencil-cube](examples/stencil-cube.html)

## Development

Expand Down
13 changes: 13 additions & 0 deletions examples/stencil-cube.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>webgpu-utils - stencil cube</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="examples.css">
</head>
<body>
<canvas></canvas>
<div id="b"><a href="https://github.com/greggman/webgpu-utils.org">webgpu-utils</a> - stencil cube</div>
<script type="module" src="stencil-cube.js"></script>
</body>
</html>
Loading

0 comments on commit 9b900c0

Please sign in to comment.