File tree 4 files changed +10
-2
lines changed
4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 4
4
[submodule "thirdparty/Vulkan-Headers "]
5
5
path = thirdparty/Vulkan-Headers
6
6
url = https://github.com/KhronosGroup/Vulkan-Headers.git
7
+ [submodule "thirdparty/DirectX-Headers "]
8
+ path = thirdparty/DirectX-Headers
9
+ url = https://github.com/microsoft/DirectX-Headers.git
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ if (NVRHI_WITH_VULKAN AND NOT TARGET Vulkan-Headers AND NOT TARGET Vulkan::Heade
58
58
add_subdirectory (thirdparty/Vulkan-Headers)
59
59
endif ()
60
60
61
+ if (NVRHI_WITH_DX12 AND NOT TARGET DirectX-Headers AND NOT TARGET Microsoft::DirectX-Headers)
62
+ add_subdirectory (thirdparty/DirectX-Headers)
63
+ endif ()
64
+
61
65
if (NVRHI_WITH_RTXMU)
62
66
if (TARGET Vulkan-Headers)
63
67
get_target_property (RTXMU_VULKAN_INCLUDE_DIR Vulkan-Headers INTERFACE_INCLUDE_DIRECTORIES )
@@ -273,7 +277,7 @@ if (NVRHI_WITH_DX12)
273
277
target_link_libraries (${nvrhi_d3d12_target} PUBLIC rtxmu)
274
278
endif ()
275
279
276
- target_link_libraries (${nvrhi_d3d12_target} PUBLIC d3d12 dxguid )
280
+ target_link_libraries (${nvrhi_d3d12_target} PUBLIC Microsoft::DirectX-Headers Microsoft::DirectX-Guids d3d12 )
277
281
278
282
if (NVRHI_WITH_NVAPI)
279
283
target_link_libraries (${nvrhi_d3d12_target} PUBLIC nvapi)
Original file line number Diff line number Diff line change 28
28
#define NOMINMAX
29
29
#endif
30
30
31
- #include < d3d12.h>
31
+ #include < directx/ d3d12.h>
32
32
33
33
namespace nvrhi
34
34
{
You can’t perform that action at this time.
0 commit comments