-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
123 lines (118 loc) · 6.06 KB
/
index.html
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<title>WebGPU Speculative Progressive Isosurface Raycaster</title>
</head>
<body>
<div class="container mt-4">
<div class="row">
<div class="col-12 text-center">
<h4>WebGPU Speculative Progressive Isosurface Raycaster</h4>
<canvas id="webgpu-canvas" class="img-fluid" width="1920" height="1088"></canvas>
</div>
<div class="col-12 col-lg-8 mx-auto row">
<div class="col-12 text-center" id="autobenchmark-status-div" hidden>
<h3 id="autobenchmark-status"></h3>
</div>
<div class="form-group col-8">
<label for="isovalue">Isovalue</label>
<input type="range" class="form-control-range" id="isovalue" min="0.0" max="255.0" step="1">
</div>
<div class="form-group col-4">
<select name="resolution" id="resolution">
<option value="720">720p</option>
<option value="1080">1080p</option>
<option value="360">360p</option>
</select>
<label for="resolution">Resolution</label>
</div>
<div class="form-group col-3">
<input type="checkbox" class="form-check-input" id="enableCache">
<label for="enableCache">Enable Cache</label>
</div>
<div class="form-group col-3">
<input type="checkbox" class="form-check-input" id="outputImages">
<label for="outputImages">Output Images</label>
</div>
<div class="form-group col-3">
<input type="checkbox" class="form-check-input" id="colorActive" checked>
<label for="colorActive">Color Active Rays</label>
</div>
<div class="form-group col-3">
<input type="checkbox" class="form-check-input" id="recordVisibleBlocks">
<label for="recordVisibleBlocks">Record Active/Visible Blocks Stats</label>
</div>
<div class="form-group col-3">
<input type="checkbox" class="form-check-input" id="enableSpeculation">
<label for="enableSpeculation">Enable Speculation</label>
</div>
<div class="form-group col-3">
<label for="startSpecCount">Starting Speculation Count</label>
<input type="number" class="form-control-range" id="startSpecCount" value="1" min="1" max="64" step="1">
</div>
<div class="form-group col-3">
<input type="checkbox" class="form-check-input" id="infer">
<label for="infer">Infer Completion</label>
</div>
<div class="form-group col-3">
<label for="completenessThreshold">Image Completeness Threshold</label>
<input type="number" class="form-control-range" id="completenessThreshold" value="1" min="0" max="1" step="0.01">
</div>
<div class="col-4 row text-left">
<p id="fps"></p>
</div>
<div class="col-4 row text-left">
<p id="mcInfo"></p>
</div>
</div>
<div class="row col-12 col-lg-8 text-left mx-auto mb-2">
<p>See the <a href="https://ieeexplore.ieee.org/document/10577555">paper</a> for more details, or checkout
the code on <a href="https://github.com/ldyken53/TVCG-progiso">Github</a>!
</div>
<div class="row col-12 col-lg-8 text-left mx-auto mb-2">
<div class="col-12 row text-left">
<p id="cacheInfo"></p>
</div>
<div class="col-12 row text-left">
<div class="col-12 text-left">
<p id="totalMemDisplay"></p>
</div>
<div class="col-6 text-left">
<p id="mcMemDisplay"></p>
</div>
<div class="col-6 text-left">
<p id="cacheMemDisplay"></p>
</div>
</div>
<div class="col-12 text-left">
<p id="camDisplay"></p>
</div>
<button href="javascript:void(0);" id="runRandomBenchmark"
type="button" class="btn btn-primary mr-1">Random Benchmark</button>
<button href="javascript:void(0);" id="runSweepUp"
type="button"
class="btn btn-primary mr-1">Sweep Up Benchmark</button>
<button href="javascript:void(0);" id="runSweepDown"
type="button"
class="btn btn-primary">Sweep Down Benchmark</button>
<button href="javascript:void(0);" id="runRotate"
type="button"
class="btn btn-primary mr-1 mt-1">Rotation Benchmark</button>
<button href="javascript:void(0);"
id="recomputeSurface" type="button"
class="btn btn-primary mr-1 mt-1">Recompute Surface (for benchmarking)</button>
<button href="javascript:void(0);"
id="saveScreenShotButton" type="button"
class="btn btn-primary mr-1 mt-1">Take Screenshot</button>
</div>
</div>
</div>
<img id="image">
<canvas id="out-canvas" width="1280" height="720" style="display: none;"></canvas>
</body>
</html>