| <!-- Based off of https://github.com/austinEng/webgpu-samples/blob/master/compute_boids.html --> |
| <!DOCTYPE html> |
| <html> |
| |
| <head> |
| <meta name="viewport" content="width=device-width"> |
| <title>WebGPU Compute Boids Compile Time Test</title> |
| <script src="scripts/gl-matrix-min.js"></script> |
| <script src="scripts/compute-boids-utils.js"></script> |
| <link rel="stylesheet" href="css/style.css"/> |
| <style> |
| body { |
| font-family: system-ui; |
| color: #f7f7ff; |
| background-color: rgb(38, 38, 127); |
| text-align: center; |
| } |
| </style> |
| </head> |
| |
| <body> |
| <div id="contents"> |
| <h1>WebGPU Compute Shader Compile Time Test</h1> |
| <div id="results"></div> |
| <canvas height=10 width=10></canvas> |
| </div> |
| <div id="error"> |
| <h2>WebGPU not available</h2> |
| <p> |
| Make sure you are on a system with WebGPU enabled. In |
| Safari, first make sure the Developer Menu is visible (Preferences > |
| Advanced), then Develop > Experimental Features > WebGPU. |
| </p> |
| <p> |
| In addition, you must be using Safari Technology Preview 92 or above. |
| You can get the latest STP <a href="https://developer.apple.com/safari/download/">here</a>. |
| </p> |
| </div> |
| <script src="scripts/compute-boids-compile.js"> </script> |
| </body> |
| </html> |