9434949241
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 | ||
tint | ||
webgpu |