Many samples explicitly reference the d3d12 sdk version
extern "C" { __declspec(dllexport) extern const UINT D3D12SDKVersion = 618; }
Whenever the SDK version is updated, the source files must also be updated, which is a tedius and annoying process. If, instead, the version is set to D3D12_SDK_VERSION then samples will automatically use the correct version.
extern "C" { __declspec(dllexport) extern const UINT D3D12SDKVersion = D3D12_SDK_VERSION; }
Example locations of this: (But there are many many more!)
|
extern "C" { __declspec(dllexport) extern const UINT D3D12SDKVersion = 618; } |
|
extern "C" { __declspec(dllexport) extern const UINT D3D12SDKVersion = 618; } |
Many samples explicitly reference the d3d12 sdk version
Whenever the SDK version is updated, the source files must also be updated, which is a tedius and annoying process. If, instead, the version is set to
D3D12_SDK_VERSIONthen samples will automatically use the correct version.Example locations of this: (But there are many many more!)
DirectX-Graphics-Samples/Samples/Desktop/D3D12Raytracing/src/D3D12RaytracingHelloWorld/D3D12RaytracingHelloWorld.cpp
Line 20 in b550a78
DirectX-Graphics-Samples/Samples/Desktop/D3D12On7/src/D3D12On7.cpp
Line 17 in b550a78