commit | d15756832e19ca13200f3fa5feadf49e9b794adb | [log] [tgz] |
---|---|---|
author | David Neto <dneto@google.com> | Wed Aug 14 16:21:46 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 14 16:21:46 2024 +0000 |
tree | 260a4ca9216e89f804e33dffd4ed76122bcbb52a | |
parent | b7114a6b6974612d378066b31fb4f0d39218c783 [diff] |
[tint] validate clamp const low <= const high when first arg is runtime-eval Generate an error for clamp(x,low,high) when low and high are constant and low <= high. The new functionality is that we check this even when x is a runtime-expression. Added a unit test for the const case. Added end2end tests for const and override cases, since the override case needs substitute-overrides to run. Bug: chromium:351378281 Change-Id: Iaeca78e08ded5b7b17469a56a617db9e5f730c18 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/202215 Commit-Queue: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com> Auto-Submit: David Neto <dneto@google.com>
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.