1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-11 10:24:10 +01:00
dxvk/tests/d3d11/test_d3d11_compute.cpp

26 lines
558 B
C++

#include <d3d11_include.h>
#include <windows.h>
#include <windowsx.h>
using namespace dxvk;
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow) {
Com<ID3D11Device> device;
Com<ID3D11DeviceContext> context;
if (FAILED(D3D11CreateDevice(nullptr,
D3D_DRIVER_TYPE_HARDWARE, nullptr, 0,
nullptr, 0, 0, &device, nullptr, &context))) {
Logger::err("Failed to create D3D11 device");
return 1;
}
return 0;
}