|author||Jiawei Shao <email@example.com>||Mon Jun 27 04:28:32 2022 +0000|
|committer||Dawn LUCI CQ <firstname.lastname@example.org>||Mon Jun 27 04:28:32 2022 +0000|
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 <email@example.com> Kokoro: Kokoro <firstname.lastname@example.org> Commit-Queue: Jiawei Shao <email@example.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.hversion that Dawn implements.
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.