commit | 46513c78104603f6b66d5b529bd161b1b4f03c3e | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Wed Jul 21 08:26:58 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 21 08:26:58 2021 +0000 |
tree | 0ebab25eba270374a5257ca21dc161489ffb42d4 | |
parent | 8bee260b746a41217be1fe0be8101c7cafbf1f19 [diff] |
Add validation to the maximum inter-shader stage variable location This patch adds the validation rules on the maximum inter-shader stage variable locations. According to Vulkan SPEC, "Each effective Location must have a value less than the number of location avaiable for the given interface", and according to Table 18 "Shader Input and Output Locations", the number of available vertex output locations is maxVertexOutputComponents / 4, and the number of available fragment input locations is maxFragmentInputComponents / 4. BUG=dawn:802 TEST=dawn_unittests Change-Id: I73a66ad69c808fbd0b128abaed1ca84f19a7925d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/58640 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.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.