Skip to content

Commit 0fb20da

Browse files
mwyrzykowskiMike Wyrzykowski
andauthored
The specification says: (#4445)
https://www.w3.org/TR/webgpu/#adapter-capability-guarantees minUniformBufferOffsetAlignment and minStorageBufferOffsetAlignment must both be ≥ 32 bytes. but the test expected 128 to be unaligned and hence invalid. 128 mod 32 = 0. Co-authored-by: Mike Wyrzykowski <[email protected]>
1 parent 02f6385 commit 0fb20da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgpu/api/validation/createBindGroup.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ g.test('buffer_offset_and_size_for_bind_groups_match')
463463
// Unaligned buffer offset is invalid
464464
{ offset: 1, size: 256, _success: false },
465465
{ offset: 1, size: undefined, _success: false },
466-
{ offset: 128, size: 256, _success: false },
466+
{ offset: 127, size: 256, _success: false },
467467
{ offset: 255, size: 256, _success: false },
468468

469469
// Out-of-bounds

0 commit comments

Comments
 (0)