mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
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:
parent
ebca1d3396
commit
0fe7efdd73
1
tests/.gitignore
vendored
1
tests/.gitignore
vendored
@ -1 +1,2 @@
|
||||
d3d12
|
||||
vkd3d_api
|
||||
|
@ -92,6 +92,13 @@ static void test_create_instance(void)
|
||||
create_info.signal_event_pfn = NULL;
|
||||
hr = vkd3d_create_instance(&create_info, &instance);
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user