vulkan-1: Add initial implementation.
[wine.git] / dlls / vulkan-1 / vulkan.c
blob5f974eed521cf252181e15e95e2dcb3bfbf528ec
1 /* Wine Vulkan loader implementation
3 * Copyright 2018 Roderick Colenbrander
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #include <stdarg.h>
22 #include "windef.h"
23 #include "winbase.h"
25 #include "wine/debug.h"
26 #include "wine/vulkan.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(vulkan);
30 VkResult WINAPI vkEnumerateInstanceExtensionProperties(const char *layer_name,
31 uint32_t *count, VkExtensionProperties *properties)
33 FIXME("stub: %p %p %p\n", layer_name, count, properties);
34 return VK_ERROR_OUT_OF_HOST_MEMORY;
37 VkResult WINAPI vkEnumerateInstanceLayerProperties(uint32_t *count,
38 VkLayerProperties *properties)
40 TRACE("%p, %p\n", count, properties);
42 /* We don't support any layers. */
43 *count = 0;
44 return VK_SUCCESS;
47 PFN_vkVoidFunction WINAPI vkGetInstanceProcAddr(VkInstance instance, const char *name)
49 FIXME("stub: %p %s\n", instance, debugstr_a(name));
50 return NULL;
53 BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved)
55 TRACE("(%p, %u, %p)\n", hinst, reason, reserved);
57 switch (reason)
59 case DLL_WINE_PREATTACH:
60 /* Prefer native as it provides more functionality. */
61 return FALSE;
63 case DLL_PROCESS_ATTACH:
64 DisableThreadLibraryCalls(hinst);
65 return TRUE;
67 return TRUE;