| commit | 35431dab090871f4ec12ae9d524b24c3fc555341 | [log] [tgz] |
|---|---|---|
| author | Kai Ninomiya <kainino@chromium.org> | Tue Oct 07 17:06:17 2025 -0700 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 07 17:06:17 2025 -0700 |
| tree | 960ea60be5a036f0b38229d19285e1ad63da0230 | |
| parent | 8d78be59fb9c2a976495bea953953d5e1aa1a10f [diff] |
[dawn][native] Add operator== for wgpu::TextureComponentSwizzle Add and use operator== and != for wgpu::TextureComponentSwizzle. Also remove TODOs about optimizing view creation for swizzles on <4 channel textures because I realized there's probably no point in doing that. (It's a minor optimization to prevent creating view objects, and it only applies in situations where the app is creating views with swizzles that are equivalent to no swizzle, which should be uncommon since it's not useful for anything.) Bug: 414312052 Change-Id: I84b63fe4330ecbf6a14272ce6c0645c52aff65f8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/265334 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Reviewed-by: François Beaufort <fbeaufort@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.