2017-12-06 19:06:23 +01:00
|
|
|
#include <d3d11.h>
|
2017-10-15 21:38:28 +02:00
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <windowsx.h>
|
|
|
|
|
2017-12-06 19:06:23 +01:00
|
|
|
#include "../test_utils.h"
|
|
|
|
|
2017-10-15 21:38:28 +02:00
|
|
|
using namespace dxvk;
|
|
|
|
|
|
|
|
int WINAPI WinMain(HINSTANCE hInstance,
|
|
|
|
HINSTANCE hPrevInstance,
|
|
|
|
LPSTR lpCmdLine,
|
|
|
|
int nCmdShow) {
|
|
|
|
Com<ID3D11Device> device;
|
|
|
|
Com<ID3D11DeviceContext> context;
|
|
|
|
|
2017-12-06 19:17:38 +01:00
|
|
|
if (FAILED(D3D11CreateDevice(
|
|
|
|
nullptr, D3D_DRIVER_TYPE_HARDWARE,
|
|
|
|
nullptr, 0, nullptr, 0, D3D11_SDK_VERSION,
|
|
|
|
&device, nullptr, &context))) {
|
2017-12-06 19:06:23 +01:00
|
|
|
std::cerr << "Failed to create D3D11 device" << std::endl;
|
2017-10-15 21:38:28 +02:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2017-10-16 20:41:40 +02:00
|
|
|
|
|
|
|
|
2017-10-15 21:38:28 +02:00
|
|
|
return 0;
|
|
|
|
}
|