commit | 3a4bd1447574dd6d2494270d3a345eb3993c6740 | [log] [tgz] |
---|---|---|
author | Stephen White <senorblanco@chromium.org> | Tue Aug 01 18:54:23 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Aug 01 18:54:23 2023 +0000 |
tree | 4bb636adebd591faf8aee3166c6cb7ecc8347088 | |
parent | db46be1539c3e7784c87ea9c0b4e8568c6b1c179 [diff] |
GLES: allow clients to pass an explicit EGLDisplay. Add a new "display" parameter to RequestAdapterOptionsGetGLProc. This allows clients to explicitly specify the display on which to create contexts. This is more robust than depending on the correct display to be current (or falling back to default) when creating a context. If no RequestAdapterOptionsGetGLProc or no display is passed, use the old logic. This allows Dawn standalone to work without change. This requires storing the EGLDisplay in opengl::PhysicalDevice, so that it can be used for the context subsequently created for each WGPUDevice. Bug: dawn:810 Change-Id: Ie5bb40711c084084829a2fe87aeb86343769a7ea Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/143502 Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.