diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-04-27 19:14:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 13:14:01 +0200 |
commit | 3a03084580188f53d348dc687aea83b2e6f1a851 (patch) | |
tree | 8d9f6f08162bd3ded3fc78c8fbb6ee0b7fa99c51 /cli/tests/unit/webgpu_test.ts | |
parent | baf7092ea2ac97bee93213ddf639bb9b41f0888e (diff) |
test(cli): run unit tests using Deno.test (#10330)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Diffstat (limited to 'cli/tests/unit/webgpu_test.ts')
-rw-r--r-- | cli/tests/unit/webgpu_test.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/tests/unit/webgpu_test.ts b/cli/tests/unit/webgpu_test.ts index d40851dfa..7b761ee3c 100644 --- a/cli/tests/unit/webgpu_test.ts +++ b/cli/tests/unit/webgpu_test.ts @@ -179,10 +179,11 @@ unitTest({ }); const encoder = device.createCommandEncoder(); + const view = texture.createView(); const renderPass = encoder.beginRenderPass({ colorAttachments: [ { - view: texture.createView(), + view, storeOp: "store", loadValue: [0, 1, 0, 1], }, @@ -204,7 +205,8 @@ unitTest({ dimensions, ); - device.queue.submit([encoder.finish()]); + const bundle = encoder.finish(); + device.queue.submit([bundle]); await outputBuffer.mapAsync(1); const data = new Uint8Array(outputBuffer.getMappedRange()); |