diff options
author | Dante Issaias <dante@issaias.com> | 2022-07-20 01:22:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 02:22:26 +0200 |
commit | 2b1f145c3e51cf9885c073b78bd5882e80d258e3 (patch) | |
tree | face88f9a6d6d109ebf8f659a59bc74e6f6ae8ee /cli/tests/unit/webgpu_test.ts | |
parent | 649536e2669eb496fc2d4dacd92fd1d6dbed50a7 (diff) |
chore(ext): update webgpu (#15059)
Diffstat (limited to 'cli/tests/unit/webgpu_test.ts')
-rw-r--r-- | cli/tests/unit/webgpu_test.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/tests/unit/webgpu_test.ts b/cli/tests/unit/webgpu_test.ts index 6ecf27fd0..fa71ffcc8 100644 --- a/cli/tests/unit/webgpu_test.ts +++ b/cli/tests/unit/webgpu_test.ts @@ -56,6 +56,7 @@ Deno.test({ storageBuffer.unmap(); const computePipeline = device.createComputePipeline({ + layout: "auto", compute: { module: shaderModule, entryPoint: "main", @@ -81,8 +82,8 @@ Deno.test({ computePass.setPipeline(computePipeline); computePass.setBindGroup(0, bindGroup); computePass.insertDebugMarker("compute collatz iterations"); - computePass.dispatch(numbers.length); - computePass.endPass(); + computePass.dispatchWorkgroups(numbers.length); + computePass.end(); encoder.copyBufferToBuffer(storageBuffer, 0, stagingBuffer, 0, size); @@ -172,13 +173,14 @@ Deno.test({ { view, storeOp: "store", - loadValue: [0, 1, 0, 1], + loadOp: "clear", + clearValue: [0, 1, 0, 1], }, ], }); renderPass.setPipeline(renderPipeline); renderPass.draw(3, 1); - renderPass.endPass(); + renderPass.end(); encoder.copyTextureToBuffer( { |