This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>WebGPU Hello Triangles</title> | |
<meta name="assert" content="WebGPU correctly renders a green canvas."> | |
<link rel="match" href="simple-triangle-strip-expected.html"> | |
<p>Pass if square canvas below is completely green.</p> | |
<canvas width="400" height="400"></canvas> | |
<script> | |
const shaderCode = ` | |
#include <metal_stdlib> |