bd0f0a279c
Previously the error messages about buffer usages would also include the internal ones that are not set by the base WebGPU API (e.g. kInternalStorageBuffer is showed when the buffer usage includes Indirect or QueryResolve), which may confuse the developers. This patch fixes this issue by implementing Buffer::GetUsageExternalOnly() for front-end validations which only return the usages with which the buffer was created using the base WebGPU API. BUG=dawn:1382 Change-Id: Ie13135efaf2c3dab729d75a80eff486efa525c7e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/87382 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Kokoro: Kokoro <noreply+kokoro@google.com> |
||
---|---|---|
.. | ||
dawn | ||
dawn_native | ||
dawn_platform | ||
dawn_wire | ||
fuzzers/dawn | ||
include | ||
tint | ||
Placeholder.cpp |