tests: Add test for creating instance with vkGetInstanceProcAddr() pointer.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-01-19 17:17:24 +01:00 committed by Alexandre Julliard
parent ebca1d3396
commit 0fe7efdd73
2 changed files with 8 additions and 0 deletions

1
tests/.gitignore vendored
View File

@ -1 +1,2 @@
d3d12 d3d12
vkd3d_api

View File

@ -92,6 +92,13 @@ static void test_create_instance(void)
create_info.signal_event_pfn = NULL; create_info.signal_event_pfn = NULL;
hr = vkd3d_create_instance(&create_info, &instance); hr = vkd3d_create_instance(&create_info, &instance);
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr); ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
create_info = instance_default_create_info;
create_info.vkGetInstanceProcAddr_pfn = vkGetInstanceProcAddr;
hr = vkd3d_create_instance(&create_info, &instance);
ok(hr == S_OK, "Failed to create instance, hr %#x.\n", hr);
refcount = vkd3d_instance_decref(instance);
ok(!refcount, "Instance has %u references left.\n", refcount);
} }
static void test_create_device(void) static void test_create_device(void)