dadf11909a
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 | ||
tint | ||
Placeholder.cpp |