commit | bf3243568c9b55a58594c401b10aa4e31c6acb8d | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Thu Aug 18 18:02:00 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 18 18:02:00 2022 +0000 |
tree | a7549241d7b177412f09a4c26b1636cd93fcdca4 | |
parent | 1ac1514ad2c97b0e3356f9b17e01460bd4fac7d6 [diff] |
Add DeviceBase::APIGetAdapter Adds a way to query the adapter from a device. Only valid in Dawn Native. Returns a new reference to the caller. The caller is responsible for releasing it. This is needed so in Chrome, SharedImage can query the WGPUAdapter from the WGPUDevice, and then WGPUAdapterProperties may be queried from the WGPUAdapter. Change-Id: I719a8728eff06ab7a22be3db5fb5cfd2ebb2f0f7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/99703 Reviewed-by: Zhenyao Mo <zmo@google.com> Commit-Queue: Austin Eng <enga@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 the webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.