Vulkan: Accept fd=-1 as valid for SYNC_FD semaphore import/export Per the Vulkan spec, fd = -1 is a valid value for VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT, indicating the semaphore is already signaled. Dawn was rejecting this in two places: SharedFence::Create unconditionally duplicated the FD (hitting a DAWN_CHECK for negative values), and ExportSemaphore treated fd = -1 returned by vkGetSemaphoreFdKHR as an error. Skip duplication when fd is -1 on import, and accept fd = -1 on export. Bug: 437259103 Change-Id: I83464e0b3efdec6b740373d7098b5c2d68964b07 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/307755 Commit-Queue: Brandon Jones <bajones@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Brandon Jones <bajones@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.