commit | 4c5ab90452d0a6bb93cf645a1a79dbfce53c6ee1 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Tue Jan 12 08:50:31 2021 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Tue Jan 12 08:50:31 2021 +0000 |
tree | 7734c13a6248c4c6bfbcfa2b5d98105e544a058e | |
parent | 2bd95f1cf45451119b6644e41919b7bef443d912 [diff] |
ShaderModule: Refactor ParseWGSL() to take a File* The tint::ast::Module holds a diagnostic list (tint::diag::List) which references the source tint::Source::File. If you try to enable any of the more pretty diagnostic printing functionality, and attempt to print these after ParseWGSL() has returned, you'll then dereference a pointer to the now stack unwound `tint::Source::File`. Promote the file up one callstack level to fix this. Bug: none. Only exposed when using pretty printing. Change-Id: I9432dd9d668fd1d92efa228bb5ed31278fd3ddfc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/37280 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Ben Clayton <bclayton@google.com>
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.