Skip to content

Commit

Permalink
[dx12] Add DirectX-Headers as a submodule
Browse files Browse the repository at this point in the history
add DirectX-Headers as a submodule.
  • Loading branch information
python3kgae committed Oct 9, 2022
1 parent a3eb8d1 commit 944e61c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions cmake/TaichiCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions external/DirectX-Headers
Submodule DirectX-Headers added at fb9a40

0 comments on commit 944e61c

Please sign in to comment.