commit | dd3f5135a7c0c16886dcff0f9be9efee44af75da | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Tue Mar 26 08:14:39 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 26 08:14:39 2024 +0000 |
tree | b8fc50c0d28c50f5c0f7c60cd9724b1d138fe338 | |
parent | f91b4d8cc43045aca8b2c64620356b6b78ea58a1 [diff] |
Implement Instance->DisconnectDawnPlatform() This patch implements InstanceBase->DisconnectDawnPlatform() which can force setting InstanceBase->mPlatform to a member of InstanceBase instead of a value out of Dawn (e.g. dawn_platform_ in WebGPUDecoderImpl in Chromium). We need to explicitly clear dawn_instance_->mPlatform in Chromium because InstanceBase is always destroyed after WebGPUDecoderImpl as a shared image object will still keep a reference of InstanceBase after WebGPUDecoderImpl is destroyed. Bug: dawn:2349 Change-Id: I4548dae7e3a7b028e4b29b6a041ec6c6e24e0996 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/180260 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Austin Eng <enga@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.