Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
agility_sdk.cpp
Go to the documentation of this file.
1
// agility_sdk.cpp — DirectX 12 Agility SDK を使うための 2 つのエクスポート(ADR-0004)。
2
//
3
// OS の d3d12.dll は、起動した exe が次の 2 つをエクスポートしていれば、
4
// OS 標準のランタイムではなく D3D12SDKPath にある D3D12Core.dll を読み込む。
5
// D3D12SDKVersion : 使う Agility SDK の版(ヘッダの D3D12_SDK_VERSION と一致させる)
6
// D3D12SDKPath : exe からの相対パス。D3D12Core.dll は CMake の POST_BUILD でここへコピーする
7
//
8
// こうすると、OS の更新に左右されずにヘッダと同じ版のランタイムで動き、
9
// Work Graphs が入っていない古い Windows でも同じ機能が使える。
10
// d3d12.h(D3D12_SDK_VERSION)は pch.h から来る。
11
12
extern
"C"
{
13
__declspec
(dllexport)
extern
const
UINT D3D12SDKVersion = D3D12_SDK_VERSION;
14
__declspec
(dllexport)
extern
const
char
* D3D12SDKPath =
".\\D3D12\\"
;
15
}
__declspec
__declspec(dllexport) extern const UINT D3D12SDKVersion
engine
src
platform
agility_sdk.cpp
Generated by
1.15.0