• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!doctype html>
2<html>
3<head>
4  <meta charset='utf-8'>
5</head>
6<body>
7  <pre id='code'><code></code></pre>
8
9  <script type="module">
10    let c = document.getElementById('code');
11
12    import SVA from "/build/sva.js";
13
14    let assembly = SVA.assemble("OpCapability Shader");
15    if (typeof assembly === "string") {
16      c.innerText = assembly;
17    } else {
18      c.innerText = Array.from(assembly)
19        .map(b => b.toString(16).padStart(8, "0")).join(" ");
20    }
21  </script>
22</body>
23</html>
24