dawn-cmake/src
Jiawei Shao bd0f0a279c Don't expose internal buffer usages in error messages
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>
2022-04-25 08:38:17 +00:00
..
dawn Don't expose internal buffer usages in error messages 2022-04-25 08:38:17 +00:00
dawn_native tint->dawn: Move src/dawn_native -> src/dawn/native 2022-02-04 17:07:46 +00:00
dawn_platform tint->dawn: Move src/dawn_platform -> src/dawn/platform 2022-02-04 12:51:25 +00:00
dawn_wire tint->dawn: Move src/dawn_wire -> src/dawn/wire 2022-02-04 12:51:25 +00:00
fuzzers/dawn tint->dawn: Move src/fuzzers/dawn -> src/dawn/fuzzers 2022-02-04 18:48:05 +00:00
include Convert all dawn includes to use non-system include syntax. 2022-04-19 14:24:04 +00:00
tint GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL. 2022-04-22 21:25:02 +00:00
Placeholder.cpp Fix inclusive language presubmit 2022-04-19 22:25:45 +00:00