Commit 2f622ac5 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d12: Set ordinal for D3D12CreateDevice().

It seems that D3D12CreateDevice() is imported by ordinal on Windows. Reported by Sveinar Søpler. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 35fe9454
@ stub GetBehaviorValue
@ stdcall D3D12CreateDevice(ptr long ptr ptr)
@ stdcall D3D12GetDebugInterface(ptr ptr)
100 stub GetBehaviorValue
101 stdcall D3D12CreateDevice(ptr long ptr ptr)
102 stdcall D3D12GetDebugInterface(ptr ptr)
@ stub D3D12CoreCreateLayeredDevice
@ stub D3D12CoreGetLayeredDeviceSize
@ stub D3D12CoreRegisterLayers
@ stdcall D3D12CreateRootSignatureDeserializer(ptr long ptr ptr)
@ stdcall D3D12SerializeRootSignature(ptr long ptr ptr)
@ stdcall D3D12EnableExperimentalFeatures(long ptr ptr ptr)
#@ stub D3D12CreateVersionedRootSignatureDeserializer
@ stdcall D3D12EnableExperimentalFeatures(long ptr ptr ptr)
@ stdcall D3D12SerializeRootSignature(ptr long ptr ptr)
@ stdcall D3D12SerializeVersionedRootSignature(ptr ptr ptr)
......@@ -774,6 +774,21 @@ static void check_sub_resource_uint_(unsigned int line, ID3D12Resource *texture,
release_resource_readback(&rb);
}
static void test_ordinals(void)
{
PFN_D3D12_CREATE_DEVICE pfn_D3D12CreateDevice, pfn_101;
HMODULE d3d12;
d3d12 = GetModuleHandleA("d3d12.dll");
ok(!!d3d12, "Failed to get module handle.\n");
pfn_D3D12CreateDevice = (void *)GetProcAddress(d3d12, "D3D12CreateDevice");
ok(!!pfn_D3D12CreateDevice, "Failed to get D3D12CreateDevice() proc address.\n");
pfn_101 = (void *)GetProcAddress(d3d12, (const char *)101);
ok(pfn_101 == pfn_D3D12CreateDevice, "Got %p, expected %p.\n", pfn_101, pfn_D3D12CreateDevice);
}
static void test_interfaces(void)
{
D3D12_COMMAND_QUEUE_DESC desc;
......@@ -1368,6 +1383,7 @@ START_TEST(d3d12)
print_adapter_info();
test_ordinals();
test_interfaces();
test_create_device();
test_draw();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment