commit | c0a1a03bd7574c0d0c9a76c52e218ab580478139 | [log] [tgz] |
---|---|---|
author | Kai Ninomiya <kainino@chromium.org> | Thu Dec 07 01:22:59 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Dec 07 01:22:59 2023 +0000 |
tree | 654e933cdf0fdc2441c374ca227cee4e9d198e03 | |
parent | 0ee94c900a987ab2c723b5bea07a4de72bc51296 [diff] |
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>
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.