-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminimal_index.html
More file actions
33 lines (30 loc) · 1 KB
/
minimal_index.html
File metadata and controls
33 lines (30 loc) · 1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Minimal example of wasm shader runner usage</title>
<script type="module" nonce="ADsRdCq89WSexQs/FibQyw==">
import init, * as bindings from "/wasm_shader_runner-32edfc57ede5ba0d.js";
const wasm = await init("/wasm_shader_runner-32edfc57ede5ba0d_bg.wasm");
window.wasmBindings = bindings;
dispatchEvent(
new CustomEvent("TrunkApplicationStarted", { detail: { wasm } })
);
</script>
<link
rel="modulepreload"
href="/wasm_shader_runner-32edfc57ede5ba0d.js"
crossorigin="anonymous"
integrity="sha384-VjfC0Ntqs7xkTz8AA5BTur2hnet1K9tqQ7bj8uSwYubAEK6UIXyRf0R9SeeTuX8+"
/>
<link
rel="preload"
href="/wasm_shader_runner-32edfc57ede5ba0d_bg.wasm"
crossorigin="anonymous"
integrity="sha384-zVsc6mQjH++FC5WYSj3OEKfKrSiJd4iNxuhf0q3W5JdyMAV4Pbo1QKA1NZEYNfqh"
as="fetch"
type="application/wasm"
/>
</head>
<body></body>
</html>