commit | a1a3b0c41b2a8d5b5a7981a147f340b5e14a2e48 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Thu Dec 07 11:00:22 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Dec 07 11:00:22 2023 +0000 |
tree | 42d0c6aadad4e24efa9655fc4f03781354cf5c3b | |
parent | 7f9721daadcf26d752f56847ff319644d1c5913e [diff] |
Revert "webgpu.h: Reserve 0 for "undefined" in enums, and match spec enum order" This reverts commit c0a1a03bd7574c0d0c9a76c52e218ab580478139. Reason for revert: Strongly suspect this change broke the blink_web_tests Original change's description: > webgpu.h: Reserve 0 for "undefined" in enums, and match spec enum order > > Also add some TODOs and fix some formatting. > > There is some risk of breakage in other projects if they assumed > certain values would be used when they zero-initialized. In particular: > - AddressMode_Repeat > - BlendFactor_Zero > - BlendOperation_Add > - AlphaMode_Premultiplied > - CullMode_None > - VertexStepMode_Vertex > - MipmapFilterMode_Nearest > - StencilOperation_Keep > - TextureAspect_All > > Not done yet: > - DeviceLostReason, because it also needs renaming work (bug 2139) > - Possibly removing any 0 values that aren't needed > - Adding new Undefined values that will need more code changes > > Bug: dawn:2224 > Change-Id: I115be149fd84a816c8b8e746b5dffbb34b1ca6f4 > Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/155984 > Reviewed-by: Corentin Wallez <cwallez@chromium.org> > Reviewed-by: Loko Kung <lokokung@google.com> > Kokoro: Kokoro <noreply+kokoro@google.com> > Commit-Queue: Kai Ninomiya <kainino@chromium.org> TBR=cwallez@chromium.org,kainino@chromium.org,noreply+kokoro@google.com,dawn-scoped@luci-project-accounts.iam.gserviceaccount.com,lokokung@google.com Change-Id: Iabe5c3c3d4bdb2d39fbf85af9379c1555444b2df No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: dawn:2224 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/164746 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Ben Clayton <bclayton@google.com> Reviewed-by: Ben Clayton <bclayton@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.