[tests] Added D3D11 compute shader test stub

This commit is contained in:
Philip Rebohle 2017-10-15 21:38:28 +02:00
parent ea15f22492
commit 08f4fb82f9
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,4 @@
test_d3d11_deps = [ dxvk_dep, dxgi_dep, d3d11_dep ]
executable('d3d11-compute', files('test_d3d11_compute.cpp'), dependencies : test_d3d11_deps, install : true)
executable('d3d11-triangle', files('test_d3d11_triangle.cpp'), dependencies : test_d3d11_deps, install : true)

View File

@ -0,0 +1,23 @@
#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;
}