blob: 6ccb0dea000e8047c69f399c3cef57f1e72122dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <cstdio>
#include "dxc/dxcapi.h"
#include "printf.h"
int main()
{
IDxcCompiler3* compiler;
DxcCreateInstance(CLSID_DxcCompiler, IID_PPV_ARGS(&compiler));
assert(compiler);
IDxcVersionInfo* version;
compiler->QueryInterface(&version);
uint32_t major, minor;
version->GetVersion(&major, &minor);
printf("DirectX Shader Compiler: %u.%u\n", major, minor);
version->Release();
compiler->Release();
return 0;
}
|