commit | d4a2bdbe1bc2757fbbd51307074b0df43e447d6d | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Wed Jan 15 10:16:20 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 15 10:16:20 2025 -0800 |
tree | 52d1851329615c86051f80b1131ef675a0cc9f04 | |
parent | 24b44efe681e21678e3522591359c35f93b4c3db [diff] |
[tint] Fix crash when ProcessASTTransforms fails If the function returns tint::Failure, the `res.Get()` calls crash as there is no program in the tint::Result object. Move the `PrintWGSL()` logic to `ProcessASTTransforms` for the specific case where there is a program but it was not valid. Fixed: 390165484 Change-Id: I8cea182e515568a553c5cc721471113b26f30534 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/222094 Auto-Submit: James Price <jrprice@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: 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.