2018-02-26 19:42:15 +01:00
|
|
|
/*
|
|
|
|
* Vulkan display driver loading
|
|
|
|
*
|
|
|
|
* Copyright (c) 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
|
|
|
|
*/
|
|
|
|
|
2021-09-29 14:09:21 +02:00
|
|
|
#if 0
|
|
|
|
#pragma makedep unix
|
|
|
|
#endif
|
|
|
|
|
2021-07-09 15:28:26 +02:00
|
|
|
#include "ntgdi_private.h"
|
2018-02-26 19:42:15 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* __wine_get_vulkan_driver (GDI32.@)
|
|
|
|
*/
|
|
|
|
const struct vulkan_funcs * CDECL __wine_get_vulkan_driver(HDC hdc, UINT version)
|
|
|
|
{
|
|
|
|
const struct vulkan_funcs *ret = NULL;
|
|
|
|
DC *dc = get_dc_ptr(hdc);
|
|
|
|
|
|
|
|
if (dc)
|
|
|
|
{
|
|
|
|
PHYSDEV physdev = GET_DC_PHYSDEV(dc, wine_get_vulkan_driver);
|
|
|
|
ret = physdev->funcs->wine_get_vulkan_driver(physdev, version);
|
|
|
|
release_dc_ptr(dc);
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|