commit | ff70da9157cbb833f9ae941ad1a2f06bc1059d96 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Wed Nov 30 21:56:01 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Nov 30 21:56:01 2022 +0000 |
tree | 60f946afe4d13375dd672536b2a96ef8daeb0707 | |
parent | 0d20b2b2b77db03010af1963d35d4d93296f3518 [diff] |
Include padding bytes in minBindingSize validation The "minimum buffer binding size" for a buffer binding variable with type `T` is `SizeOf(T)`, which includes trailing padding bytes for structures. Update several tests that were not creating large enough buffers. Add a new test for validating the size of a buffer with a non-struct vec3 type, which should still be 12 bytes. Fixed: tint:1377 Change-Id: Iddbc22c561a67b6aa6659d7ddf78b1b12b230930 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111582 Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@google.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.