commit | 66281b8be160cf400f3a82b2cad6b9f8a11df27c | [log] [tgz] |
---|---|---|
author | Elie Michel <elie.michel.fr@gmail.com> | Sat Jan 27 17:59:08 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Jan 27 17:59:08 2024 +0000 |
tree | 22030950bea3e55cec727d1a86951d9ebe533313 | |
parent | 52d18a755d370cea0bcf29ede4d591ac59fd97a9 [diff] |
Add SurfaceGetPreferredFormat standard method This is a standard method from webgpu.h that has been missing forever. AFAIK Dawn in native context only supports BGRA8Unorm, so it is natural to implement this method to always return this value. This makes compatibility with other WebGPU backends easier, and gets Dawn one small step closer to standard compliance (though I guess it'll have to be reworked once other surface formats are available in native mode). Bug: dawn:1362 Change-Id: I2829d0091346fd19a28c16eba965140f85082239 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/167560 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Élie Michel <elie.michel.fr@gmail.com> Kokoro: Kokoro <noreply+kokoro@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.