mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-12 13:10:14 +02:00
Use DirectX-Headers via vcpkg
This commit is contained in:
parent
1ab21d9900
commit
be1050bce2
@ -144,6 +144,7 @@ if ((NOT WIN32) OR VCPKG_TOOLCHAIN)
|
||||
find_package(directx-headers CONFIG REQUIRED)
|
||||
find_package(directxmath CONFIG REQUIRED)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectX-Headers Microsoft::DirectXMath)
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE USING_DIRECTX_HEADERS)
|
||||
endif()
|
||||
|
||||
#--- Package
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <d3d11_1.h>
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#else // !WIN32
|
||||
#include <directx/dxgiformat.h>
|
||||
#include <wsl/winadapter.h>
|
||||
#endif
|
||||
|
@ -100,7 +100,12 @@
|
||||
#include <d3d12_x.h>
|
||||
#include <d3d11_x.h>
|
||||
#elif (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
|
||||
#ifdef USING_DIRECTX_HEADERS
|
||||
#include <directx/dxgiformat.h>
|
||||
#include <directx/d3d12.h>
|
||||
#else
|
||||
#include <d3d12.h>
|
||||
#endif
|
||||
#include <d3d11_4.h>
|
||||
#else
|
||||
#include <d3d11_1.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user