Changeset 249685 in webkit
- Timestamp:
- Sep 9, 2019, 6:39:57 PM (7 years ago)
- Location:
- trunk/Websites/webkit.org
- Files:
-
- 4 added
- 11 edited
-
ChangeLog (modified) (1 diff)
-
demos/webgpu/babylon/oneHelmetWebGPU.html (modified) (1 diff)
-
demos/webgpu/babylon/oneSphereWebGPU.html (modified) (1 diff)
-
demos/webgpu/compute-blur.html (modified) (1 diff)
-
demos/webgpu/compute-boids-compile.html (modified) (1 diff)
-
demos/webgpu/compute-boids.html (modified) (5 diffs)
-
demos/webgpu/hello-cube.html (modified) (1 diff)
-
demos/webgpu/hello-triangle.html (modified) (1 diff)
-
demos/webgpu/index.html (modified) (3 diffs)
-
demos/webgpu/resources/babylon-helmet.png (added)
-
demos/webgpu/resources/babylon-sphere.png (added)
-
demos/webgpu/resources/motionmark.jpeg (added)
-
demos/webgpu/resources/webkit-logo.png (added)
-
demos/webgpu/scripts/compute-boids-compile.js (modified) (1 diff)
-
demos/webgpu/textured-cube.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Websites/webkit.org/ChangeLog
r249666 r249685 1 2019-09-09 Justin Fan <justin_fan@apple.com> 2 3 [WebGPU] Upload Babylon.js, WSL compile, and MotionMark links to demo page 4 https://bugs.webkit.org/show_bug.cgi?id=201621 5 6 Reviewed by Dean Jackson. 7 8 Add new demos to the WebGPU demo collection. 9 Ensure error alerts/divs display properly if WebGPU is not enabled. 10 11 * demos/webgpu/babylon/oneHelmetWebGPU.html: 12 * demos/webgpu/babylon/oneSphereWebGPU.html: 13 * demos/webgpu/compute-blur.html: 14 * demos/webgpu/compute-boids-compile.html: 15 * demos/webgpu/compute-boids.html: 16 * demos/webgpu/hello-cube.html: 17 * demos/webgpu/hello-triangle.html: 18 * demos/webgpu/index.html: 19 * demos/webgpu/resources/babylon-helmet.png: Added. 20 * demos/webgpu/resources/babylon-sphere.png: Added. 21 * demos/webgpu/resources/motionmark.jpeg: Added. 22 * demos/webgpu/resources/webkit-logo.png: Added. 23 * demos/webgpu/scripts/compute-boids-compile.js: 24 * demos/webgpu/textured-cube.html: 25 1 26 2019-09-09 Jon Lee <jonlee@apple.com> 2 27 -
trunk/Websites/webkit.org/demos/webgpu/babylon/oneHelmetWebGPU.html
r249666 r249685 177 177 (async function() { 178 178 if (!navigator.gpu) { 179 alert("Web GPU is not supported on your platform so far.");179 alert("WebGPU is not enabled."); 180 180 return; 181 181 } -
trunk/Websites/webkit.org/demos/webgpu/babylon/oneSphereWebGPU.html
r249666 r249685 178 178 (async function() { 179 179 if (!navigator.gpu) { 180 alert("Web GPU is not supported on your platform so far.");180 alert("WebGPU is not enabled."); 181 181 return; 182 182 } -
trunk/Websites/webkit.org/demos/webgpu/compute-blur.html
r248309 r249685 78 78 <p> 79 79 Make sure you are on a system with WebGPU enabled. In 80 Safari, first make sure the Developer Menu is visible (Preferences →81 Advanced), then Develop → Experimental Features →WebGPU.80 Safari, first make sure the Developer Menu is visible (Preferences > 81 Advanced), then Develop > Experimental Features > WebGPU. 82 82 </p> 83 83 </div> -
trunk/Websites/webkit.org/demos/webgpu/compute-boids-compile.html
r249665 r249685 8 8 <script src="scripts/gl-matrix-min.js"></script> 9 9 <script src="scripts/compute-boids-utils.js"></script> 10 < script src="scripts/compute-boids-compile.js"> </script>10 <link rel="stylesheet" href="css/style.css"/> 11 11 <style> 12 12 body { 13 13 font-family: system-ui; 14 color: #f7f7ff; 15 background-color: rgb(38, 38, 127); 16 text-align: center; 14 17 } 15 16 18 </style> 17 19 </head> 18 20 19 21 <body> 20 <h1>WebGPU Compute Boids Compile Time Test</h1>21 < div id="not-supported" style="display: none">WebGPU not supported! Please visit <a href="//webgpu.io">webgpu.io</a> to see the current implementation status.</div>22 <div id="contents"> 23 <h1>WebGPU Compute Shader Compile Time Test</h1> 22 24 <div id="results"></div> 23 25 <canvas height=10 width=10></canvas> 26 </div> 27 <div id="error"> 28 <h2>WebGPU not available</h2> 29 <p> 30 Make sure you are on a system with WebGPU enabled. In 31 Safari, first make sure the Developer Menu is visible (Preferences > 32 Advanced), then Develop > Experimental Features > WebGPU. 33 </p> 34 </div> 35 <script src="scripts/compute-boids-compile.js"> </script> 24 36 </body> 25 26 37 </html> -
trunk/Websites/webkit.org/demos/webgpu/compute-boids.html
r249446 r249685 1 <!-- Based off of https://github.com/austinEng/webgpu-samples/blob/master/compute_boids.html --> 1 2 <!DOCTYPE html> 2 3 <html> … … 4 5 <head> 5 6 <meta name="viewport" content="width=1200"> 6 <title>WebGPU Compute Flocking</title>7 <title>WebGPU Compute Shader Flocking</title> 7 8 <script src="scripts/gl-matrix-min.js"></script> 8 9 <link rel="stylesheet" href="css/style.css"/> … … 21 22 <body> 22 23 <div id="contents"> 23 <h1>Compute Flocking</h1>24 <h1>Compute Shader Flocking</h1> 24 25 <p> 25 26 This demo uses a compute shader to update the positions of objects in parallel. 26 27 </p> 27 <canvas width="1200" height="1200"></canvas>28 <canvas></canvas> 28 29 </div> 29 30 <div id="error"> … … 31 32 <p> 32 33 Make sure you are on a system with WebGPU enabled. In 33 Safari, first make sure the Developer Menu is visible (Preferences →34 Advanced), then Develop → Experimental Features →WebGPU.34 Safari, first make sure the Developer Menu is visible (Preferences > 35 Advanced), then Develop > Experimental Features > WebGPU. 35 36 </p> 36 37 </div> … … 141 142 142 143 const canvas = document.querySelector('canvas'); 144 let size = window.innerWidth < window.innerHeight ? window.innerWidth : window.innerHeight; 145 size *= 0.75; 146 canvas.width = size; 147 canvas.height = size; 143 148 const context = canvas.getContext('gpu'); 144 149 -
trunk/Websites/webkit.org/demos/webgpu/hello-cube.html
r248309 r249685 30 30 <p> 31 31 Make sure you are on a system with WebGPU enabled. In 32 Safari, first make sure the Developer Menu is visible (Preferences →33 Advanced), then Develop → Experimental Features →WebGPU.32 Safari, first make sure the Developer Menu is visible (Preferences > 33 Advanced), then Develop > Experimental Features > WebGPU. 34 34 </p> 35 35 </div> -
trunk/Websites/webkit.org/demos/webgpu/hello-triangle.html
r248309 r249685 27 27 <p> 28 28 Make sure you are on a system with WebGPU enabled. In 29 Safari, first make sure the Developer Menu is visible (Preferences →30 Advanced), then Develop → Experimental Features →WebGPU.29 Safari, first make sure the Developer Menu is visible (Preferences > 30 Advanced), then Develop > Experimental Features > WebGPU. 31 31 </p> 32 32 </div> -
trunk/Websites/webkit.org/demos/webgpu/index.html
r249446 r249685 178 178 <p class="howto"> 179 179 Make sure you are on a system with WebGPU enabled. In Safari, first 180 make sure the Developer Menu is visible (Preferences →Advanced),181 then ensure Develop → Experimental Features →WebGPU is checked.180 make sure the Developer Menu is visible (Preferences > Advanced), 181 then ensure Develop > Experimental Features > WebGPU is checked. 182 182 </p> 183 183 <p class="warning"> … … 201 201 <a href="textured-cube.html"> 202 202 <img src="resources/textured-cube.png"><br> 203 Textured SpinningCube203 Textured Cube 204 204 </a> 205 205 </div> … … 211 211 </div> 212 212 <div class="example"> 213 <a href="babylon/oneSphereWebGPU.html"> 214 <img src="resources/babylon-sphere.png"><br> 215 Sphere (Babylon.js) 216 </a> 217 </div> 218 <div class="example"> 219 <a href="babylon/oneHelmetWebGPU.html"> 220 <img src="resources/babylon-helmet.png"><br> 221 Helmet (Babylon.js) 222 </a> 223 </div> 224 <div class="example"> 213 225 <a href="compute-boids.html"> 214 226 <img src="resources/compute-boids.png"><br> 215 Compute Shader Boids 227 Compute Shader Flocking 228 </a> 229 </div> 230 <div class="example"> 231 <a href="compute-boids-compile.html"> 232 <img src="resources/webkit-logo.png"><br> 233 Compute Shader Compile Time Test 234 </a> 235 </div> 236 <div class="example"> 237 <a href="https://browserbench.org/MotionMark1.1/developer.html?test-interval=10&display=minimal&tiles=big&controller=ramp&frame-rate=50&kalman-process-error=1&kalman-measurement-error=4&time-measurement=performance&suite-name=3DGraphics&test-name=TrianglesWebGPU"> 238 <img src="resources/motionmark.jpeg"> 239 MotionMark Benchmark 216 240 </a> 217 241 </div> -
trunk/Websites/webkit.org/demos/webgpu/scripts/compute-boids-compile.js
r249665 r249685 1 if (!navigator.gpu) { 2 document.getElementById('not-supported').style.display = 'block'; 3 alert('WebGPU not supported! Please visit webgpu.io to see the current implementation status.'); 4 } 1 if (!navigator.gpu) 2 document.body.className = "error"; 5 3 6 4 const isChrome = navigator.userAgent.indexOf("Chrome") >= 0; -
trunk/Websites/webkit.org/demos/webgpu/textured-cube.html
r248309 r249685 33 33 <p> 34 34 Make sure you are on a system with WebGPU enabled. In 35 Safari, first make sure the Developer Menu is visible (Preferences →36 Advanced), then Develop → Experimental Features →WebGPU.35 Safari, first make sure the Developer Menu is visible (Preferences > 36 Advanced), then Develop > Experimental Features > WebGPU. 37 37 </p> 38 38 </div>
Note:
See TracChangeset
for help on using the changeset viewer.