commit | 26b7d8f6d719f13b802fdc85797cb1ea75f4ef98 | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Thu Apr 09 21:22:12 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Thu Apr 09 21:22:12 2020 +0000 |
tree | eaf3e093ac4880cb891c2b9e19bbf048168b1d7e | |
parent | 6574f92747a23fd7ae2a69ebaf11aade122b20b4 [diff] |
Fix use-after-free if BindGroup is the last owner of its BindGroupLayout Destruction of the BindGroup needs to ensure that the BindGroupLayout is destroyed after the BindGroup. This is done by using a custom deleter which first creates an extra reference to the BGL before deleting the BindGroup. Bug: dawn:355 Change-Id: I819bbce13473ee4738eaa304f6dac90e0501302a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19060 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@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 webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.