| commit | 65beb32b6180f33b9e14667fefe1fc955b113fcd | [log] [tgz] |
|---|---|---|
| author | Ryan Harrison <rharrison@chromium.org> | Mon Nov 10 10:16:22 2025 -0800 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Nov 10 10:16:22 2025 -0800 |
| tree | a1f72a2af86821ccb3cfe0070d819a55a41283fc | |
| parent | 131bf41aacba1e5898f7da4dfd6eaf267ec16496 [diff] |
[tint][val] Rework how `@builtin(...)` is validated Refactors the existing checker implementation to support the special cased built-ins like @builtin(position), so that their special handling can be removed. This refactoring changes the error logging to be explicit about what the builtin was attached to, e.g. a vertex shader input, and provides what the valid options are. This CL also changes the capability to allow clip_distance on scalars to also allow vectors, since that is needed by the HLSL backend. Trying to split them into two capabilities leads to a bunch of duplicated instances of them and more complex logic in the validator. (The original validation logic had an oversight that allowed this construct to pass unintentionally) Issue: 455376684 Change-Id: Ia5dac3782158c2e1acc3d0505fa7fdf4a1057f3b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/271854 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Auto-Submit: Ryan Harrison <rharrison@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.