commit | 53296e8220c50496c49e6316a77cff7cb4a695ea | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Wed Mar 13 02:01:51 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 13 02:01:51 2024 +0000 |
tree | ea5632c52841c87dcb8885a3977c0e2badceafec | |
parent | d928d5bc72593341022f98941e52dc271db72afa [diff] |
Revert "Remove SwapChain from the API" This reverts commit 8faad454e56c4de1a648a17cf1a7010e28503d5c. Reason for revert: Causing ASSERT failures on Windows with --enable-implicit-device-sync. And, causing Linux TSAN use-after-free errors. https://bugs.chromium.org/p/dawn/issues/detail?id=2320#c4 Original change's description: > Remove SwapChain from the API > > This applies the switch from manipulating a SwapChain object to calling > Surface::configure that was brung to the standard webgpu.h a couple of > months ago. > > I believe this needs a bit of extra work, but at this stage I need a > review from people more familiar with the codebase to tell me if I am > going in the right direction. > > The SwapChain object is still here, but no longer present in the API. > Instances of the swap chain are now owned by the surface object. The > test for surface capabilities is partly calling a method of the > PhysicalDevice in order to have backend-specific capabilities. > > So far I mostly tested with the Vulkan backend, though I tried to > provide a valid implementation for all backends. > > Bug: dawn:2320 > Change-Id: I69d3c64873213eca375c66170cb648debd8ec91d > Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/167600 > Kokoro: Kokoro <noreply+kokoro@google.com> > Commit-Queue: Élie Michel <elie.michel.fr@gmail.com> > Reviewed-by: Corentin Wallez <cwallez@chromium.org> > Reviewed-by: Austin Eng <enga@chromium.org> Bug: dawn:2320 Change-Id: Icaf912bc87ac5a7f2a646bc5405a9c3ef37bb932 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/178885 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Austin Eng <enga@chromium.org> Auto-Submit: Austin Eng <enga@chromium.org> Reviewed-by: Loko Kung <lokokung@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.