android13/external/deqp-deps/SPIRV-Tools/tools/sva/tests/index.html

24 lines
493 B
HTML
Raw Normal View History

2024-06-22 08:45:49 -04:00
<!doctype html>
<html>
<head>
<meta charset='utf-8'>
</head>
<body>
<pre id='code'><code></code></pre>
<script type="module">
let c = document.getElementById('code');
import SVA from "/build/sva.js";
let assembly = SVA.assemble("OpCapability Shader");
if (typeof assembly === "string") {
c.innerText = assembly;
} else {
c.innerText = Array.from(assembly)
.map(b => b.toString(16).padStart(8, "0")).join(" ");
}
</script>
</body>
</html>