[dawn][samples] Fix Emscripten/GLFW ifdefs Samples assumed we were always in either Emscripten or using GLFW. On Android, we don't use GLFW either, so fix the conditions. This isn't intended to make the samples *work* on Android, just build. I'm not sure if they're expected to work - I think they are supposed to be built in CMake, but I haven't looked into it. Prerequisite for adding a Dawn standalone GN build. Bug: 520153663 Change-Id: I7405cc78d555f11fb80a104803a84194e1539cc9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/317596 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com>
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.