Fix some WebGPU demos
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Nov 2019 20:16:12 +0000 (20:16 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Nov 2019 20:16:12 +0000 (20:16 +0000)
commit9757cef9f8c1fe3d94f5350a4578155d6f3736cb
tree6ecc1d9e163d652e163115e20987a82317f9af03
parent5c2203b2c24e0216eb896dd64dcc36c3601cfe2d
Fix some WebGPU demos
https://bugs.webkit.org/show_bug.cgi?id=204167
Source/WebCore:

<rdar://problem/57160316>

Reviewed by Myles C. Maxfield.

Add a note referencing a bug I detected while fixing this demo.
And a drive-by typo.

* Modules/webgpu/WebGPUBuffer.cpp:
(WebCore::WebGPUBuffer::rejectOrRegisterPromiseCallback):
* platform/graphics/gpu/cocoa/GPUCommandBufferMetal.mm:
(WebCore::GPUCommandBuffer::copyBufferToTexture):

Websites/webkit.org:

Reviewed by Myles C. Maxfield.

Use COPY_ rather than TRANSFER_.

* demos/webgpu/babylon/babylonWebGpu.max.js:
* demos/webgpu/babylon/oneSphereWebGPU.html:
* demos/webgpu/hello-cube.html:
* demos/webgpu/scripts/compute-boids-compile.js:
* demos/webgpu/scripts/compute-boids-utils.js:
(async.createTextureFromImage):
* demos/webgpu/textured-cube.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/webgpu/WebGPUBuffer.cpp
Source/WebCore/platform/graphics/gpu/cocoa/GPUCommandBufferMetal.mm
Websites/webkit.org/ChangeLog
Websites/webkit.org/demos/webgpu/babylon/babylonWebGpu.max.js
Websites/webkit.org/demos/webgpu/babylon/oneSphereWebGPU.html
Websites/webkit.org/demos/webgpu/hello-cube.html
Websites/webkit.org/demos/webgpu/scripts/compute-boids-compile.js
Websites/webkit.org/demos/webgpu/scripts/compute-boids-utils.js
Websites/webkit.org/demos/webgpu/textured-cube.html