commit | dadf11909a2efb8dea2d88261f6aa9715513d61c | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Mon Jun 27 04:28:32 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jun 27 04:28:32 2022 +0000 |
tree | 8f18a816b7d2d7507370c1ee5af91b033e611a76 | |
parent | ceb7236547093db0a5d047ccb9987e4e87926195 [diff] |
Clamp clear color value to legal range for uint/sint formats This patch clamps GPURenderPassColorAttachment.clearValue into the legal range for uint/sint formats according to the latest WebGPU SPEC. This patch also adds tests to verify we can directly apply floating point clear values for normalized floating formats. We don't handle non-normalized floating formats as the exact choice of the converted value is implementation-defined. Bug: dawn:1449 Test: dawn_end2end_tests Change-Id: I864f3e9bafb9c7ecd0ed9cfa7f401174da000884 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94501 Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> 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.