Diff
Modified: trunk/Websites/webkit.org/ChangeLog (250100 => 250101)
--- trunk/Websites/webkit.org/ChangeLog 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/ChangeLog 2019-09-19 19:36:35 UTC (rev 250101)
@@ -1,3 +1,28 @@
+2019-09-19 Justin Fan <[email protected]>
+
+ [WebGPU] Update messaging to reflect STP 92 requirement for demos
+ https://bugs.webkit.org/show_bug.cgi?id=201931
+
+ Reviewed by Jon Lee.
+
+ Demos don't work anymore on versions of Safari older than STP 92,
+ so update WebGPU feature detection to reflect that.
+
+ * demos/webgpu/babylon/babylonWebGpu.max.js:
+ * demos/webgpu/babylon/oneHelmetWebGPU.html:
+ * demos/webgpu/babylon/oneSphereWebGPU.html:
+ * demos/webgpu/compute-blur.html:
+ * demos/webgpu/compute-boids-compile.html:
+ * demos/webgpu/compute-boids.html:
+ * demos/webgpu/hello-cube.html:
+ * demos/webgpu/hello-triangle.html:
+ * demos/webgpu/scripts/compute-blur.js:
+ (async.init):
+ * demos/webgpu/scripts/compute-boids-compile.js:
+ * demos/webgpu/scripts/hello-triangle.js:
+ (async.helloTriangle):
+ * demos/webgpu/textured-cube.html:
+
2019-09-18 Myles C. Maxfield <[email protected]>
[WebGPU] Update demos to work on STP 92
Modified: trunk/Websites/webkit.org/demos/webgpu/babylon/babylonWebGpu.max.js (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/babylon/babylonWebGpu.max.js 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/babylon/babylonWebGpu.max.js 2019-09-19 19:36:35 UTC (rev 250101)
@@ -41963,7 +41963,7 @@
_this._decodeEngine.getCaps().textureHalfFloat = false;
_this._decodeEngine.getCaps().textureHalfFloatRender = false;
_Misc_logger__WEBPACK_IMPORTED_MODULE_1__["Logger"].Log("Babylon.js v" + _Engines_engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].Version + " - WebGPU engine");
- if (!navigator.gpu) {
+ if (!navigator.gpu || GPUBufferUsage.COPY_SRC === undefined) {
_Misc_logger__WEBPACK_IMPORTED_MODULE_1__["Logger"].Error("WebGPU is not supported by your browser.");
return _this;
}
Modified: trunk/Websites/webkit.org/demos/webgpu/babylon/oneHelmetWebGPU.html (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/babylon/oneHelmetWebGPU.html 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/babylon/oneHelmetWebGPU.html 2019-09-19 19:36:35 UTC (rev 250101)
@@ -175,8 +175,8 @@
let Shaderc = {Compiler, CompileOptions, shader_kind: ShaderKind};
(async function() {
- if (!navigator.gpu) {
- alert("WebGPU is not enabled.");
+ if (!navigator.gpu || GPUBufferUsage.COPY_SRC === undefined) {
+ alert("WebGPU is not enabled. Are you using Safari Technology Preview 92 or above?");
return;
}
const canvas = document.getElementById("renderCanvas");
Modified: trunk/Websites/webkit.org/demos/webgpu/babylon/oneSphereWebGPU.html (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/babylon/oneSphereWebGPU.html 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/babylon/oneSphereWebGPU.html 2019-09-19 19:36:35 UTC (rev 250101)
@@ -176,8 +176,8 @@
let Shaderc = {Compiler, CompileOptions, shader_kind: ShaderKind};
(async function() {
- if (!navigator.gpu) {
- alert("WebGPU is not enabled.");
+ if (!navigator.gpu || GPUBufferUsage.COPY_SRC === undefined) {
+ alert("WebGPU is not enabled. Are you using Safari Technology Preview 92 or above?");
return;
}
const canvas = document.getElementById("renderCanvas");
Modified: trunk/Websites/webkit.org/demos/webgpu/compute-blur.html (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/compute-blur.html 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/compute-blur.html 2019-09-19 19:36:35 UTC (rev 250101)
@@ -80,6 +80,10 @@
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=""
+ </p>
</div>
<script src=""
</body>
Modified: trunk/Websites/webkit.org/demos/webgpu/compute-boids-compile.html (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/compute-boids-compile.html 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/compute-boids-compile.html 2019-09-19 19:36:35 UTC (rev 250101)
@@ -31,6 +31,10 @@
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=""
+ </p>
</div>
<script src="" </script>
</body>
Modified: trunk/Websites/webkit.org/demos/webgpu/compute-boids.html (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/compute-boids.html 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/compute-boids.html 2019-09-19 19:36:35 UTC (rev 250101)
@@ -34,9 +34,13 @@
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=""
+ </p>
</div>
<script>
- if (!navigator.gpu)
+ if (!navigator.gpu || GPUBufferUsage.COPY_SRC === undefined)
document.body.className = 'error';
const numParticles = 1500;
Modified: trunk/Websites/webkit.org/demos/webgpu/hello-cube.html (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/hello-cube.html 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/hello-cube.html 2019-09-19 19:36:35 UTC (rev 250101)
@@ -32,9 +32,13 @@
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=""
+ </p>
</div>
<script>
-if (!navigator.gpu)
+if (!navigator.gpu || GPUBufferUsage.COPY_SRC === undefined)
document.body.className = 'error';
const positionAttributeNum = 0;
Modified: trunk/Websites/webkit.org/demos/webgpu/hello-triangle.html (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/hello-triangle.html 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/hello-triangle.html 2019-09-19 19:36:35 UTC (rev 250101)
@@ -29,6 +29,10 @@
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=""
+ </p>
</div>
<script src=""
</body>
Modified: trunk/Websites/webkit.org/demos/webgpu/scripts/compute-blur.js (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/scripts/compute-blur.js 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/scripts/compute-blur.js 2019-09-19 19:36:35 UTC (rev 250101)
@@ -12,7 +12,7 @@
const width = 600;
async function init() {
- if (!navigator.gpu) {
+ if (!navigator.gpu || GPUBufferUsage.COPY_SRC === undefined) {
document.body.className = "error";
return;
}
Modified: trunk/Websites/webkit.org/demos/webgpu/scripts/compute-boids-compile.js (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/scripts/compute-boids-compile.js 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/scripts/compute-boids-compile.js 2019-09-19 19:36:35 UTC (rev 250101)
@@ -1,4 +1,4 @@
-if (!navigator.gpu)
+if (!navigator.gpu || GPUBufferUsage.COPY_SRC === undefined)
document.body.className = "error";
const isChrome = navigator.userAgent.indexOf("Chrome") >= 0;
Modified: trunk/Websites/webkit.org/demos/webgpu/scripts/hello-triangle.js (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/scripts/hello-triangle.js 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/scripts/hello-triangle.js 2019-09-19 19:36:35 UTC (rev 250101)
@@ -1,5 +1,5 @@
async function helloTriangle() {
- if (!navigator.gpu) {
+ if (!navigator.gpu || GPUBufferUsage.COPY_SRC === undefined) {
document.body.className = 'error';
return;
}
Modified: trunk/Websites/webkit.org/demos/webgpu/textured-cube.html (250100 => 250101)
--- trunk/Websites/webkit.org/demos/webgpu/textured-cube.html 2019-09-19 19:19:37 UTC (rev 250100)
+++ trunk/Websites/webkit.org/demos/webgpu/textured-cube.html 2019-09-19 19:36:35 UTC (rev 250101)
@@ -35,9 +35,13 @@
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=""
+ </p>
</div>
<script>
-if (!navigator.gpu)
+if (!navigator.gpu || GPUBufferUsage.COPY_SRC === undefined)
document.body.className = 'error';
const positionAttributeNum = 0;