blob: 416d659f05f010ef13171155496b8cb06da0103d [file] [log] [blame]
Ian Elliott1d73e662015-07-06 14:36:13 -06001/*
Ian Elliott1d73e662015-07-06 14:36:13 -06002 *
Courtney Goeltzenleuchter8a17da52015-10-29 13:50:34 -06003 * Copyright (C) 2015 Valve Corporation
Ian Elliott1d73e662015-07-06 14:36:13 -06004 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
22 *
Courtney Goeltzenleuchter96cd7952015-10-30 11:14:30 -060023 * Author: Ian Elliott <ian@lunarg.com>
24 *
Ian Elliott1d73e662015-07-06 14:36:13 -060025 */
26
27#include "vk_loader_platform.h"
28#include "loader.h"
David Pinedo329ca9e2015-11-06 12:54:48 -070029#include "vulkan/vk_ext_khr_swapchain.h"
Ian Elliott1d73e662015-07-06 14:36:13 -060030
Jon Ashburn99456002015-11-06 11:02:40 -070031bool wsi_swapchain_instance_gpa(struct loader_instance *ptr_instance,
32 const char* name, void **addr);
Ian Elliott1d73e662015-07-06 14:36:13 -060033void wsi_swapchain_add_instance_extensions(
Jon Ashburne58f1a32015-08-28 13:38:21 -060034 const struct loader_instance *inst,
Ian Elliott1d73e662015-07-06 14:36:13 -060035 struct loader_extension_list *ext_list);
36
37void wsi_swapchain_create_instance(
38 struct loader_instance *ptr_instance,
39 const VkInstanceCreateInfo *pCreateInfo);
40
Ian Elliott1d73e662015-07-06 14:36:13 -060041
Chia-I Wuaf9e4fd2015-11-06 06:42:02 +080042VKAPI_ATTR VkResult VKAPI_CALL loader_GetPhysicalDeviceSurfaceSupportKHR(
Ian Elliott1d73e662015-07-06 14:36:13 -060043 VkPhysicalDevice physicalDevice,
44 uint32_t queueNodeIndex,
Ian Elliott338dedb2015-08-21 15:09:33 -060045 const VkSurfaceDescriptionKHR* pSurfaceDescription,
Ian Elliott1d73e662015-07-06 14:36:13 -060046 VkBool32* pSupported);