crud89 / LiteFX

Modern, flexible computer graphics and rendering engine, written in C++23 with support for Vulkan 🌋 and DirectX 12 ❎.
https://litefx.crudolph.io/
MIT License
84 stars 7 forks source link

Use DirectX 12 Agility SDK. #95

Closed crud89 closed 1 year ago

crud89 commented 1 year ago

Describe the pull request

This PR adds an overlay port for the DirectX 12 Agility SDK. Currently it targets version 1.608.3. The required files are downloaded for NuGet through vcpkg. SDK binaries are installed into a d3d12 sub-directory. The Windows SDK version of D3D12 gets replaced.

This changes the requirements for client applications, since they now need top-level exports to indicate that the Agility SDK is used. The easiest way to do this is by adding the following code on top of the main source file:

#define LITEFX_DEFINE_GLOBAL_EXPORTS
#define LITEFX_AUTO_IMPORT_BACKEND_HEADERS
#include <litefx/litefx.h>

Both - the samples and the tutorial - have been updated accordingly.

Related issues