Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
  • Loading branch information
eliemichel committed Jan 3, 2023
1 parent bdfdc64 commit 22e54ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
releases/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ Given a GLFW window, `glfwGetWGPUSurface` returns a WebGPU *surface* that corres
Usage
-----
Your project must link to an implementation of WebGPU (providing `webgpu.h`) and of course to GLFW.
Your project must link to an implementation of WebGPU (providing `webgpu.h`) and of course to GLFW. Then:
**Option A** If you use CMake, you can simply include this project as a subdirectory with `add_subdirectory(glfw3webgpu)` (see the content of [`CMakeLists.txt`](CMakeLists.txt)).
**Option B** Just copy `glfw3webgpu.h` and `glfw3webgpu.c` to your project's source tree. On MacOS, you must add the compile option `-x objective-c` and the link libraries `-framework Cocoa`, `-framework CoreVideo`, `-framework IOKit`, and `-framework QuartzCore`.
**Option B** Just copy [`glfw3webgpu.h`](glfw3webgpu.h) and [`glfw3webgpu.c`](glfw3webgpu.c) to your project's source tree. On MacOS, you must add the compile option `-x objective-c` and the link libraries `-framework Cocoa`, `-framework CoreVideo`, `-framework IOKit`, and `-framework QuartzCore`.
Example
-------
Expand Down

0 comments on commit 22e54ff

Please sign in to comment.