commit | 628906f5ac9cb3e1feb3e45f73e073ba4f2d19c2 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Fri Aug 16 00:46:12 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 16 00:46:12 2024 +0000 |
tree | b9aa9f30bf469ca61534e04bf55c8c0d4df38aa4 | |
parent | e9e07cc6e20a9200b4a9481a0e7a6f8ec9ca9ed6 [diff] |
Tint: Add validation on the shader stage with `clip_distances` This patch adds the validations on the shader stages with `clip_distances` among the shader stage inputs or outputs. According to the latest WGSL SPEC, `clip_distances` can only be used as a part of vertex shader outputs. Bug: chromium:358408571 Test: tint_unittests Change-Id: Idea8dfb7e7601468415c817a6959ac7aed8200d2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/202499 Reviewed-by: dan sinclair <dsinclair@chromium.org> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Jiawei Shao <jiawei.shao@intel.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.