Wrap all uses of SPIRV-Cross in #define. Put all cross-platform code references to Spirv-Cross behind ifdef DAWN_USE_SPIRV_CROSS. Hide build dependencies behind dawn_use_spirv_cross, which itself is set from dawn_enable_opengl, since it is the only backend which is still using SPIRV-Cross. Bug: dawn:1036 Change-Id: Id61512230b50a32c63827a16fece40d7899968d8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/61400 Commit-Queue: Kai Ninomiya <kainino@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 the webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.