52cc4f5d1c
This CL moves the GLFWUtils.cpp into a dawn/glfw/utils.cpp and GLFWUtils.h into include/webgpu/webgpu_glfw.h. A build target (`webgpu_glfw` alias to `dawn_glfw`) is added in order to allow using that target in downstream projects without having to re-implement. Change-Id: I93e85d5af3f486b3c754f2f854aafbda51901d6d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/98700 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> |
||
---|---|---|
.. | ||
BUILD.gn | ||
CMakeLists.txt | ||
README.md | ||
utils.cpp | ||
utils_metal.mm |
README.md
In order to use Dawn WebGPU implementation with GLFW there is some boilerplate code needed in order to create the WebGPU surface. This repo contains an implementation of that boilerplate which can be used by downstream applications. It can also serve as an example of how to integrate Dawn and GLFW if there is desire to not use this helper.