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