Explicitly handle NULL Vulkan debug message IDs The Vulkan spec states that the pMessageIdName for a debug message may be NULL. We were previously passing it into a LogMessage (which wraps an std::ostream) unchecked, but passing a NULL into an ostream is undefined behavior. This was likely leading to crashes on some devices. This patch updates the logging behavior to check for NULL and take a different path if encountered to avoid triggering undefined behavior. Bug: chromium:1497136 Change-Id: I431539dc21f51fa48bb754f5bc9c85acf2ce8f04 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/159040 Reviewed-by: Austin Eng <enga@chromium.org> Auto-Submit: Brandon Jones <bajones@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> (cherry picked from commit 3a8735eb1fff33fe303b099623c870facb9f7268) Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/159032 Commit-Queue: Brandon Jones <bajones@chromium.org> Kokoro: Brandon Jones <bajones@chromium.org>
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)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.