commit | 9b606f7a25f66ec4150fb499cf42f5240445ed85 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Fri Apr 09 18:22:28 2021 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Fri Apr 09 18:22:28 2021 +0000 |
tree | 65cf73a73d779984ad485ef935f3b8879f5212ca | |
parent | 9178d9bf3500e0f03e9681a8d1df5be94c021d06 [diff] |
ShaderModule: Keep the tint::Source::File alive Tint diagnostics hold a raw pointer to the tint::Source::File, so that source snippets can be printed. The tint::Source::File pointer was taken from a stack allocation, and the diagnostics were left with a dead pointer. Have the ShaderModuleParseResult keep the tint::Source::File alive with a PIMPL unique_ptr. Change-Id: I80d77516afd4012e15992821e060ef3038eba1c1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/47422 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@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)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.