From 8fe78180d2e72bc7c6f8a7214cea2082b90ca5f4 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Sun, 9 Oct 2022 18:01:26 -0700 Subject: [PATCH] [dx12] Add DirectX-Headers as a submodule (#6259) add DirectX-Headers as a submodule. Issue: #5276 --- .gitmodules | 3 +++ cmake/TaichiCore.cmake | 1 + external/DirectX-Headers | 1 + 3 files changed, 5 insertions(+) create mode 160000 external/DirectX-Headers diff --git a/.gitmodules b/.gitmodules index c81394ee31a41..e832c5738aaca 100644 --- a/.gitmodules +++ b/.gitmodules @@ -59,3 +59,6 @@ [submodule "external/PicoSHA2"] path = external/PicoSHA2 url = https://github.com/okdshin/PicoSHA2.git +[submodule "external/DirectX-Headers"] + path = external/DirectX-Headers + url = https://github.com/microsoft/DirectX-Headers.git diff --git a/cmake/TaichiCore.cmake b/cmake/TaichiCore.cmake index 7478f03189038..c05cbec358876 100644 --- a/cmake/TaichiCore.cmake +++ b/cmake/TaichiCore.cmake @@ -233,6 +233,7 @@ if(TI_WITH_LLVM) add_subdirectory(taichi/runtime/dx12) add_subdirectory(taichi/codegen/dx12) + target_include_directories(${CORE_LIBRARY_NAME} PRIVATE external/DirectX-Headers/include) target_link_libraries(${CORE_LIBRARY_NAME} PRIVATE dx12_codegen) target_link_libraries(${CORE_LIBRARY_NAME} PRIVATE dx12_runtime) endif() diff --git a/external/DirectX-Headers b/external/DirectX-Headers new file mode 160000 index 0000000000000..fb9a40f1b8165 --- /dev/null +++ b/external/DirectX-Headers @@ -0,0 +1 @@ +Subproject commit fb9a40f1b8165c848cf49fdb396722af7181ff97