commit | 2dfd177009b14650d67697b25f291dceb18d96d1 | [log] [tgz] |
---|---|---|
author | Arman Uguray <armansito@google.com> | Mon Jan 09 20:00:51 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 09 20:00:51 2023 +0000 |
tree | 2d23f3ce1b4afc718839c90675e21a456ca5fe44 | |
parent | 07c32cb938cacc8be6f149d5524b44e011f96272 [diff] |
spirv-reader: Apply image coord vector check on unwrapped type When validating the image coordinate type of an identifier that may have been hoisted into a 'var' declaration, spirv-reader correctly checked the type of the unwrapped reference for scalars but not when the coordinate type is a vector. This change applies the vector type checks to the unwrapped type. Introduced a vector coordinate variant of the SpvParserHandleTest.ImageCoordinateCanBeHoistedConstant test which demonstrates the issue and passes with the fix. Fixed: tint:1712 Change-Id: I9d99a1996e5df71921d6f66d1af02fb5088f1f20 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116371 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: David Neto <dneto@google.com> Reviewed-by: David Neto <dneto@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.