commit | 58fc3f1cc918266ac6aa993524c4336b5dd2b2c7 | [log] [tgz] |
---|---|---|
author | Natalie Chouinard <chouinard@google.com> | Thu Jun 13 18:39:15 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jun 13 18:39:15 2024 +0000 |
tree | 8bb7a49e930f3433fea1bca18d9a54fa4d1f8932 | |
parent | 8f8f8d78f4ddd932a692159fed0178c0418ba9c8 [diff] |
Disallow textureStore in vertex shader tests Writable storage textures cannot be used in vertex shaders, as such, the `textureStore` builtin should only be allowed in compute and fragment shaders. This change fixes tests that would fail once validation against usage of writable storage buffers and textures in vertex shaders is added to Tint. The manually modified file in this change is src/tint/lang/wgsl/wgsl.def. The rest of the changes were created with: ./tools/run gen ./tools/run tests --generate-expected test/tint/builtins/gen/literal/textureStore/ ./tools/run tests --generate-expected test/tint/builtins/gen/var/textureStore A unittest in StorageTextureValidationTests.cpp was also manually fixed up to account for earlier detection of the error. Bug: 344846829 Change-Id: I68ad65a78c853e3d50e3333d6e2b00f48c0e48e8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/192941 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Natalie Chouinard <chouinard@google.com>
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.