Sweden-Number/dlls/gdi32/vulkan.c

39 lines
1.3 KiB
C

/*
* 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
*/
#include "gdi_private.h"
/***********************************************************************
* __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;
}