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
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. */
47 PFN_vkVoidFunction WINAPI
vkGetInstanceProcAddr(VkInstance instance
, const char *name
)
49 FIXME("stub: %p %s\n", instance
, debugstr_a(name
));
53 BOOL WINAPI
DllMain(HINSTANCE hinst
, DWORD reason
, void *reserved
)
55 TRACE("(%p, %u, %p)\n", hinst
, reason
, reserved
);
59 case DLL_WINE_PREATTACH
:
60 /* Prefer native as it provides more functionality. */
63 case DLL_PROCESS_ATTACH
:
64 DisableThreadLibraryCalls(hinst
);