commit | 1f3f5df6810adfd8c37ce25fb3c22c92a4e9bf02 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Fri Sep 06 00:59:21 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 06 00:59:21 2024 +0000 |
tree | a685ae08b2324e6ea8d828c54fd919aa2344332f | |
parent | 7678e6975f5a4b25165a12d6cc4e3f356d177b87 [diff] |
Support validating buffer usage with usage validation mode This patch adds `UsageValidationMode` as the third parameter of `ValidateCanUseAs` with a buffer as input to align with the format of the function `ValidateCanUseAs` with a texture as input. This patch also updates the test `InternalStorageBufferBindingTests` by using classes in `native::` instead of the `wgpu::` to better test the `internal usage` of the buffers. Bug: chromium:42240463 Test: dawn_unittests Change-Id: I2db2c922555ded050949da20828be17c95499152 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/204914 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Dawn is an open-source and cross-platform implementation of the 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)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.