commit | 5a26bdd62d0f809626214c8a3448a988bcd25736 | [log] [tgz] |
---|---|---|
author | Jaswant Panchumarti <jaswant.panchumarti@kitware.com> | Thu Jul 04 14:13:55 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 04 14:13:55 2024 +0000 |
tree | f1dd52e3ec63be929620d66e8ca3b655ff19a972 | |
parent | fdd37f4d241ac25c0e720b7d2db1c717e7a2bfb2 [diff] |
Refine the bundling step for `webgpu_dawn` - Build `webgpu_dawn` only when `DAWN_BUILD_MONOLITHIC_LIBRARY` is enabled - Turns off `DAWN_BUILD_MONOLITHIC_LIBRARY` because tools/android already builds a different bundle. - Link dawn_native with "-framework Foundation". This is needed for iOS. - Export symbols from `dawn_native` and `dawn/webgpu.h` when building monolithic shared library. - Remove install rules for unexported static libraries. - Provide a single `webgpu_dawn` library, C/C++ headers and cmake config file for consumers to use `wgpu` methods. - The exported symbols also permit instantiation of public classes from `dawn::native` namespaces. Change-Id: Ie8575d49366f3c333b860ce2617960067edfc404 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/195996 Commit-Queue: Jaswant Panchumarti <jaswant.panchumarti@kitware.com> Reviewed-by: dan sinclair <dsinclair@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.