mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 10:54:16 +01:00
[tests] Added D3D11 compute shader test stub
This commit is contained in:
parent
ea15f22492
commit
08f4fb82f9
@ -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)
|
23
tests/d3d11/test_d3d11_compute.cpp
Normal file
23
tests/d3d11/test_d3d11_compute.cpp
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user