[PATCH vkd3d 2/8] tests: Add more tests for D3D12CreateDevice() with device set to NULL.
Józef Kucia
joseph.kucia at gmail.com
Fri Jul 20 07:30:13 CDT 2018
From: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
tests/d3d12.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/d3d12.c b/tests/d3d12.c
index e2337c4427ab..83dc8f903c81 100644
--- a/tests/d3d12.c
+++ b/tests/d3d12.c
@@ -1082,6 +1082,10 @@ static void test_create_device(void)
hr = D3D12CreateDevice(NULL, D3D_FEATURE_LEVEL_11_0, &IID_ID3D12Device, NULL);
ok(hr == S_FALSE, "Got unexpected hr %#x.\n", hr);
+ hr = D3D12CreateDevice(NULL, D3D_FEATURE_LEVEL_11_0, NULL, NULL);
+ ok(hr == S_FALSE, "Got unexpected hr %#x.\n", hr);
+ hr = D3D12CreateDevice(NULL, D3D_FEATURE_LEVEL_11_0, &IID_ID3D12DeviceChild, NULL);
+ ok(hr == S_FALSE, "Got unexpected hr %#x.\n", hr);
hr = D3D12CreateDevice(NULL, D3D_FEATURE_LEVEL_9_1, &IID_ID3D12Device, (void **)&device);
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
--
2.16.4
More information about the wine-devel
mailing list