Bug 252643
| Summary: | [WebGPU] GPUCommandEncoder.clearBuffer does not appear to work | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Mike Wyrzykowski <mwyrzykowski> |
| Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Mike Wyrzykowski
[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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/105708271>
Mike Wyrzykowski
Pull request: https://github.com/WebKit/WebKit/pull/10425
EWS
Committed 260707@main (033f8d135327): <https://commits.webkit.org/260707@main>
Reviewed commits have been landed. Closing PR #10425 and removing active labels.
Mike Wyrzykowski
*** Bug 252630 has been marked as a duplicate of this bug. ***