commit | 55e5dc7aedae9b9f9dcde94292291cce598aef4a | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Fri Mar 15 11:18:21 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 15 11:18:21 2024 +0000 |
tree | 19b2c23b48a8012dcd0f48dcfd7fe606f8063fbe | |
parent | 684ea5852d0903fe434980609c0c0657ba18a808 [diff] |
Fix dangling pointer in ProgrammableEncoder This patch fixes the dangling pointer (`mEncodingContext`) in `ProgrammableEncoder`. As `mEncodingContext` always points to a piece of memory owned by a member of the inherited class of `ProgrammableEncoder` (`Ref<CommandEncoder>` in `RenderPassEncoder` and `ComputePassEncoder`, and `mBundleEncodingContext` in `RenderBundleEncoder`), we must always clear `mEncodingContext` before deleting the piece of memory it points to. Bug: dawn:2349 Change-Id: Iad15cf5fbf14818bbfad7e701585d4520b3e7d03 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/178981 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
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.