forked from Twinklebear/webgpu-experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zfp_decompress.html
45 lines (43 loc) · 1.92 KB
/
zfp_decompress.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
<!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 Experiments</title>
</head>
<body>
<div class="container mt-4">
<div class="row">
<div class="col-12 text-center">
<h4>WebGPU Experiments</h4>
<canvas id="webgpu-canvas" class="img-fluid" width="640" height="480"></canvas>
</div>
<div class="col-12 col-lg-8 text-center mx-auto">
ZFP decompression and Marching Cubes
<p id="mcInfo"></p>
<p id="fps"></p>
</div>
<div class="col-12 col-lg-8 mx-auto">
<label for="isovalue">Isovalue</label>
<input type="range" class="form-control-range" id="isovalue" min="0.0" max="255.0" step="1">
<button href="javascript:void(0);" onclick="recomputeSurface();"
id="recomputeSurface" type="button" class="btn btn-primary">Recompute Surface (for benchmarking)</button>
</div>
</div>
</div>
<script src="shaders/zfp_decompress_spv.js"></script>
<script src="shaders/embed_marching_cubes_shaders.js"></script>
<script src="js/gl-matrix-min.js"></script>
<script src="js/webgl-util.js"></script>
<script src="js/exclusive_scan.js"></script>
<script src="js/volumes.js"></script>
<script src="js/tri_table.js"></script>
<script src="js/compute_marching_cubes.js"></script>
<script src="js/zfp_decompressor.js"></script>
<script src="js/zfp_decompress.js"></script>
</body>
</html>