-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (35 loc) · 1.26 KB
/
index.html
File metadata and controls
40 lines (35 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body>
<div id="container">
<div id="flex" style="display: flex; flex-direction: row;">
<!-- Base canvas -->
<canvas id="webgpu" width="800" height="800"></canvas>
<div style="height: 100%; display: flex; flex-direction: column;">
<select id="hardware-select">
<option value="cpu">CPU</option>
<option value="gpu" selected>GPU</option>
</select>
<!-- <input type="range" id="slider" min="0" max="1000000" value="50000">
<p>Value: <span id="sliderValue">50000</span></p> -->
<!-- Label showing which processor is being used -->
<h1 id="processor"></h1>
<!-- Label showing canvas framerate -->
<h1 id="framerate"></h1>
<!-- Label showing mouse position -->
<h1 id="x-axis"></h1>
<h1 id="y-axis"></h1>
<!-- Not used -->
<h1 id="x-text"></h1>
<h1 id="y-text"></h1>
</div>
</div>
</div>
<script type="module" src="./src/main.ts"></script>
</body>
</html>