commit | 55623705bef897b77888c3c9410c94cbaa3c1e4e | [log] [tgz] |
---|---|---|
author | Stephen Gutekanst <stephen@hexops.com> | Sat Jul 01 11:43:55 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Jul 01 11:43:55 2023 +0000 |
tree | 74e9d62c38edc07f181056d94ba3ae0a5550ee15 | |
parent | a5e7e951a6168082f7f15b39b99e91db0bb6b26b [diff] |
Add DAWN_USE_WINDOWS_UI option for Zig & MinGW compilers In Mach engine, we're compiling Dawn using Zig as a C/C++ compiler. Zig provides it's own libc implementation, build system, and system headers. Dawn today makes use of newer `windows.ui.*.h` headers introduced in more recent Windows versions. However, Zig relies on MinGW for it's system headers and it is not straightforward/desirable to use the official Windows SDK headers: Zig does not have these headers today. Since Dawn does not truly require these headers, we are using a preprocessor directive `DAWN_USE_WINDOWS_UI` to disable this functionality and enable compilation of Dawn with Zig/MinGW compilers. I have based the implementation on the existing `DAWN_USE_X11` and `DAWN_USE_WAYLAND` build configuration approaches. Signed-off-by: Stephen Gutekanst <stephen@hexops.com> Change-Id: If41cafb95666946115b58567fef753df3fbe940a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/87383 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Corentin Wallez <cwallez@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.