This repository was archived by the owner on Mar 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
site/en/blog/webgpu-cross-platform Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ description: "Learn how to build an app with WebGPU for the web and specific pla
55hero : " image/vvhSqZboQoZZN9wBvoXq72wzGAf1/C9CyIqxrytYlH4uqCbgX.jpg"
66alt : " Landscape photography of person's hand in front of sunrise."
77date : 2023-07-20
8- # updated: YYYY-MM-DD
8+ updated : 2023-10-30
99authors :
1010 - beaufortfrancois
1111tags :
@@ -81,13 +81,13 @@ $ git submodule add https://dawn.googlesource.com/dawn
8181Then, append to the ` CMakeLists.txt ` file as follows:
8282- The CMake ` DAWN_FETCH_DEPENDENCIES ` option will fetch all Dawn dependencies.
8383- The ` dawn/ ` sub folder will be included in the target.
84- - Your app will depend on ` webgpu_dawn ` , ` webgpu_cpp ` , and ` webgpu_glfw ` targets so that you can use them in the ` main.cpp ` file later.
84+ - Your app will depend on ` webgpu_cpp ` , ` webgpu_dawn ` , and ` webgpu_glfw ` targets so that you can use them in the ` main.cpp ` file later.
8585
8686``` cmake
8787…
8888set(DAWN_FETCH_DEPENDENCIES ON)
8989add_subdirectory("dawn" EXCLUDE_FROM_ALL)
90- target_link_libraries(app PRIVATE webgpu_dawn webgpu_cpp webgpu_glfw)
90+ target_link_libraries(app PRIVATE webgpu_cpp webgpu_dawn webgpu_glfw)
9191```
9292
9393### Open a window
@@ -336,7 +336,7 @@ if(EMSCRIPTEN)
336336else()
337337 set(DAWN_FETCH_DEPENDENCIES ON)
338338 add_subdirectory("dawn" EXCLUDE_FROM_ALL)
339- target_link_libraries(app PRIVATE webgpu_dawn webgpu_cpp webgpu_glfw)
339+ target_link_libraries(app PRIVATE webgpu_cpp webgpu_dawn webgpu_glfw)
340340endif()
341341```
342342
You can’t perform that action at this time.
0 commit comments