Create wgpu surface

This commit is contained in:
Guilherme Werner
2024-02-16 19:56:32 -03:00
parent feae6c0d9d
commit 4132183bd3
4 changed files with 221 additions and 23 deletions

View File

@ -7,13 +7,18 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
padding: 0;
}
canvas {
background-color: black;
}
</style>
</head>
<body id="wasm-example">
<body id="wasm-surface">
<script type="module">
import init from "../package/renderer.js";