commit | db144f31124815dea40159564f5c05cce312a9a2 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Wed Jul 31 12:18:36 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 31 12:18:36 2024 +0000 |
tree | ed2eebb54ac5b55628e8a69a90866cdee561588f | |
parent | 4f7b1c2a0ef3b90851116ab82c88e053ccd8b996 [diff] |
Fix validation on the blend factors using the alpha channel of Src1 This patch fixes the validation on the blend factors using the alpha channel of `Src1` that we should only require the fragment shader output be `vec4` when the color blend factors use the alpha channel of `Src1` to align with the latest WebGPU SPEC. We don't need to do such validation on the alpha blend factors because when the fragment shader output is not `vec4`, the alpha blend factors are ignored, so we don't need to care about whether the alpha channel of `Src1` is used or not. Bug: chromium:341973423 Test: dawn_unittests Change-Id: I1440c3d8b776a6887eb300124febbb071016ec5a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/200794 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Corentin Wallez <cwallez@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.