Skip to content

Commit

Permalink
a wireframe example (#427)
Browse files Browse the repository at this point in the history
* a wireframe example
  • Loading branch information
greggman authored Jun 19, 2024
1 parent de97ba4 commit 73107d8
Show file tree
Hide file tree
Showing 8 changed files with 761 additions and 0 deletions.
30 changes: 30 additions & 0 deletions sample/wireframe/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>webgpu-samples: wireframe</title>
<style>
:root {
color-scheme: light dark;
}
html, body {
margin: 0; /* remove default margin */
height: 100%; /* make body fill the browser window */
display: flex;
place-content: center center;
}
canvas {
width: 600px;
height: 600px;
max-width: 100%;
display: block;
}
</style>
<script defer src="main.js" type="module"></script>
<script defer type="module" src="../../js/iframe-helper.js"></script>
</head>
<body>
<canvas></canvas>
</body>
</html>
Loading

0 comments on commit 73107d8

Please sign in to comment.