commit | 9311a1b75e518c00381390049453c4b42994b955 | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Thu Nov 30 18:48:32 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Nov 30 18:48:32 2023 +0000 |
tree | c267c9f1991a0e2aae939e47a0caa88d06845e66 | |
parent | a598e5ffe1b7806d2d4df4373085687b54bcb42a [diff] |
Implement SharedTextureMemory DmaBuf, SharedFence SyncFD+OpaqueFD Zircon shared fences are also implemented, blindly. It is only valid to enable at most one fence feature which sets the fence type for the entire device. This functionality is built on top of the existing VkSemaphore implementation but now the semaphore handle type may be configured at runtime based on the enabled fence feature. If no fence features are enabled, then it defaults to using the same semaphore type that it previously was hard-coded to. Some Linux only support XRGB and XBGR dma buf formats. These formats are tested to verify that between Dawn devices, the alpha channel contents are preserved. This works because the channel exists and can be read/written by Vulkan - it's just that display system will ignore alpha for compositing/presentation. Bug: dawn:1745 Change-Id: I2671611c8a7ee48d99df0b003b88fddac90d3b6e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/144861 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
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.