commit | b421e4039ddf914ca55a1be0468b138bf7dc188c | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Thu Nov 23 08:08:53 2023 +0000 |
committer | Ben Clayton <bclayton@google.com> | Thu Nov 23 08:08:53 2023 +0000 |
tree | f1d956857e25137ed63357b28a7b9f614e19deda | |
parent | ff67199151e64f4dc1f13a96aea80dd50c43d669 [diff] |
[tint][wgsl][fuzz] Fix static init ordering bug Because C++ makes no ordering guarantees, we were having some fuzzers register themselves before the vector holding the registered fuzzers was constructed. Upon construction, the vector would wipe away all the registered fuzzers, and so we were only running those that were registered after the vector was constructed. Instead, use a static local to hold the vector. This is guaranteed to be constructed the first time the function is called, avoiding the ordering foot-gun. Change-Id: I1f442e6a15c64f6125bd6866d8f8c00829f2055a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/162303 Reviewed-by: dan sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@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.