commit | 494b6ae760b63a0cbb4a844801a3e6e6cec9929f | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Thu May 23 14:04:09 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 23 14:04:09 2024 +0000 |
tree | 4d4559ca66ceec5587570848362f9da49ab7a5a0 | |
parent | 0d7751b60af75e8bb0061a27b9093ff180b0f25e [diff] |
Add validations on the `Src1` blend factors against fragment output This patch adds all the validations on the blend factors that use `Src1` against fragment shader outputs: 1. When any of the blend factor uses `Src1`, `blend_src(1)` must be declared on one of the fragment shader outputs 2. When any of the blend factor uses the alpha channel of the `Src1`, the fragment shader output with `blend_src(1)` must have an alpha channel. Bug: chromium:341973423 Test: dawn_unittests Change-Id: Id096df3f76d08836a204e2dabf1359820a8e80e6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/189200 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
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.