[Webkit-unassigned] [Bug 252643] New: [WebGPU] GPUCommandEncoder.clearBuffer does not appear to work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 20 19:18:46 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=252643

            Bug ID: 252643
           Summary: [WebGPU] GPUCommandEncoder.clearBuffer does not appear
                    to work
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGPU
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mwyrzykowski at apple.com

[WebGPU] GPUCommandEncoder.clearBuffer does not appear to work.

Apply the following patch to instanced-textured-cube.js:

diff --git a/Websites/webkit.org/demos/webgpu/scripts/instanced-textured-cube.js b/Websites/webkit.org/demos/webgpu/scripts/instanced-textured-cube.js
index 4eb3defa62d4..3820afb3770e 100644
--- a/Websites/webkit.org/demos/webgpu/scripts/instanced-textured-cube.js
+++ b/Websites/webkit.org/demos/webgpu/scripts/instanced-textured-cube.js
@@ -334,6 +334,7 @@ async function helloCube() {

         /* GPUCommandEncoder */
         const commandEncoder = device.createCommandEncoder();
+        commandEncoder.clearBuffer(translationBuffer);
         /* GPURenderPassEncoder */
         const renderPassEncoder = commandEncoder.beginRenderPass(renderPassDescriptor);


it still seems to work as usual with an occasional flash. Which means the clear isn't happening in general or consistently.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230221/51698731/attachment.htm>


More information about the webkit-unassigned mailing list