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

Indexes created Thu Nov 07 10:32:03 CST 2024