summaryrefslogtreecommitdiff
path: root/cli/tests/unit/webgpu_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/webgpu_test.ts')
-rw-r--r--cli/tests/unit/webgpu_test.ts6
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());