Skip to content

Commit eb9091d

Browse files
authored
Fix buffer usage validity (#4586)
A usage of 0 is not allowed by the spec, setting it to `GPUBufferUsage.STORAGE` should get this test working properly.
1 parent f1db17e commit eb9091d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webgpu/api/validation/buffer/mapping.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ g.test('mapAsync,abort_over_invalid_error')
413413
const { mapMode, unmapBeforeResolve } = t.params;
414414
const bufferSize = 8;
415415
const buffer = t.createBufferTracked({
416-
usage: 0,
416+
usage: GPUBufferUsage.STORAGE,
417417
size: bufferSize,
418418
});
419419

0 commit comments

Comments
 (0)