dawn-cmake/src/dawn/glfw
dan sinclair 52cc4f5d1c Add a target for the GLFW surface helper.
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>
2022-08-14 15:59:25 +00:00
..
BUILD.gn Add a target for the GLFW surface helper. 2022-08-14 15:59:25 +00:00
CMakeLists.txt Add a target for the GLFW surface helper. 2022-08-14 15:59:25 +00:00
README.md Add a target for the GLFW surface helper. 2022-08-14 15:59:25 +00:00
utils.cpp Add a target for the GLFW surface helper. 2022-08-14 15:59:25 +00:00
utils_metal.mm Add a target for the GLFW surface helper. 2022-08-14 15:59:25 +00:00

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.