winevulkan: Add stub ICD.
Signed-off-by: Roderick Colenbrander <thunderbird2k@gmail.com> Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
460174e53a
commit
fcc7af8322
|
@ -1537,6 +1537,7 @@ enable_wineoss_drv
|
|||
enable_wineps_drv
|
||||
enable_winepulse_drv
|
||||
enable_wineqtdecoder
|
||||
enable_winevulkan
|
||||
enable_winex11_drv
|
||||
enable_wing32
|
||||
enable_winhttp
|
||||
|
@ -19036,6 +19037,7 @@ wine_fn_config_dll wineps.drv enable_wineps_drv
|
|||
wine_fn_config_dll wineps16.drv16 enable_win16
|
||||
wine_fn_config_dll winepulse.drv enable_winepulse_drv
|
||||
wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
|
||||
wine_fn_config_dll winevulkan enable_winevulkan
|
||||
wine_fn_config_dll winex11.drv enable_winex11_drv
|
||||
wine_fn_config_dll wing.dll16 enable_win16
|
||||
wine_fn_config_dll wing32 enable_wing32
|
||||
|
|
|
@ -3690,6 +3690,7 @@ WINE_CONFIG_DLL(wineps.drv)
|
|||
WINE_CONFIG_DLL(wineps16.drv16,enable_win16)
|
||||
WINE_CONFIG_DLL(winepulse.drv)
|
||||
WINE_CONFIG_DLL(wineqtdecoder)
|
||||
WINE_CONFIG_DLL(winevulkan)
|
||||
WINE_CONFIG_DLL(winex11.drv)
|
||||
WINE_CONFIG_DLL(wing.dll16,enable_win16)
|
||||
WINE_CONFIG_DLL(wing32)
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
MODULE = winevulkan.dll
|
||||
|
||||
C_SRCS = \
|
||||
vulkan.c
|
||||
|
||||
RC_SRCS = version.rc
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright 2017 Roderick Colenbrander
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include "config.h" /* Needed to get PACKAGE_VERSION */
|
||||
|
||||
#define WINE_FILEDESCRIPTION_STR "Wine Vulkan ICD"
|
||||
#define WINE_FILENAME_STR "winevulkan.dll"
|
||||
#define WINE_FILEVERSION_STR PACKAGE_VERSION
|
||||
#define WINE_PRODUCTVERSION_STR PACKAGE_VERSION
|
||||
#define WINE_PRODUCTNAME_STR "Wine Vulkan"
|
||||
|
||||
#include "wine/wine_common_ver.rc"
|
|
@ -0,0 +1,51 @@
|
|||
/* Wine Vulkan ICD implementation
|
||||
*
|
||||
* Copyright 2017 Roderick Colenbrander
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
|
||||
#include "wine/debug.h"
|
||||
#include "wine/vulkan.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(vulkan);
|
||||
|
||||
void * WINAPI wine_vk_icdGetInstanceProcAddr(VkInstance instance, const char *name)
|
||||
{
|
||||
FIXME("stub: %p %s\n", instance, debugstr_a(name));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
VkResult WINAPI wine_vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t *supported_version)
|
||||
{
|
||||
FIXME("stub: %p\n", supported_version);
|
||||
return VK_ERROR_INCOMPATIBLE_DRIVER;
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved)
|
||||
{
|
||||
switch (reason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hinst);
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
@ stdcall vk_icdGetInstanceProcAddr(ptr str) wine_vk_icdGetInstanceProcAddr
|
||||
@ stdcall vk_icdNegotiateLoaderICDInterfaceVersion(ptr) wine_vk_icdNegotiateLoaderICDInterfaceVersion
|
Loading…
Reference in New Issue