commit | 9434949241843187fe55ad51f897dcb23b5cd67c | [log] [tgz] |
---|---|---|
author | Stephen White <senorblanco@chromium.org> | Wed Jun 29 15:29:41 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 29 15:29:41 2022 +0000 |
tree | d16a0b36d4d84c181bfa7b6bfb4deae1bc68d09a | |
parent | 3a2a27971487769c4581c876ea379854a4fe997a [diff] |
GL: implement EGL context creation in Dawn native. An abstract base class (Device::Context) is used to avoid adding dependencies to Device, with ContextEGL derived from it. This also leaves open the possibility of supporting other native GL contexts in the future (e.g., glX). One temporary EGLContext is created by opengl::Backend during Adapter discovery, then one is created for and owned by each Device. Contexts for the desktop GL backend are also managed via EGL, which works for most modern drivers. This also means that GLFW is now always used in GLFW_NO_API mode. Since contexts are now per-device, all of the default GL state setting and debug output setup was moved from Adapter to Device. Bug: dawn:810 Change-Id: Idfe30939f155d026fcad549787fc167cc43aa3cb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/93981 Commit-Queue: Stephen White <senorblanco@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
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.