blob: 3b299d55386f4403adcb3b05b2a76fb469843ae1 [file] [log] [blame]
Mark Youngd66edd52017-03-10 17:31:18 -07001/*
2 * Copyright (c) 2015-2017 The Khronos Group Inc.
3 * Copyright (c) 2015-2017 Valve Corporation
4 * Copyright (c) 2015-2017 LunarG, Inc.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 * Author: Mark Young <marky@lunarg.com>
19 */
20
21#pragma once
22
23// ---- Manually added trampoline/terminator functions
24
25// These functions, for whatever reason, require more complex changes than
26// can easily be automatically generated.
27
28VKAPI_ATTR VkResult VKAPI_CALL EnumeratePhysicalDeviceGroupsKHX(
29 VkInstance instance, uint32_t *pPhysicalDeviceGroupCount,
30 VkPhysicalDeviceGroupPropertiesKHX *pPhysicalDeviceGroupProperties);
31
32VKAPI_ATTR VkResult VKAPI_CALL terminator_EnumeratePhysicalDeviceGroupsKHX(
33 VkInstance instance, uint32_t *pPhysicalDeviceGroupCount,
34 VkPhysicalDeviceGroupPropertiesKHX *pPhysicalDeviceGroupProperties);
35
36VKAPI_ATTR VkResult VKAPI_CALL
37GetPhysicalDeviceExternalImageFormatPropertiesNV(
38 VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type,
39 VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags,
40 VkExternalMemoryHandleTypeFlagsNV externalHandleType,
41 VkExternalImageFormatPropertiesNV *pExternalImageFormatProperties);
42
43VKAPI_ATTR VkResult VKAPI_CALL
44terminator_GetPhysicalDeviceExternalImageFormatPropertiesNV(
45 VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type,
46 VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags,
47 VkExternalMemoryHandleTypeFlagsNV externalHandleType,
48 VkExternalImageFormatPropertiesNV *pExternalImageFormatProperties);
49
Lenny Komow1d5b9152017-05-10 10:06:13 -060050VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceFeatures2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures2KHR* pFeatures);
51
52VKAPI_ATTR void VKAPI_CALL terminator_GetPhysicalDeviceFeatures2KHR(VkPhysicalDevice physicalDevice,
53 VkPhysicalDeviceFeatures2KHR* pFeatures);
54
55VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceProperties2KHR(VkPhysicalDevice physicalDevice,
56 VkPhysicalDeviceProperties2KHR* pProperties);
57
58VKAPI_ATTR void VKAPI_CALL terminator_GetPhysicalDeviceProperties2KHR(VkPhysicalDevice physicalDevice,
59 VkPhysicalDeviceProperties2KHR* pProperties);
60
61VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceFormatProperties2KHR(VkPhysicalDevice physicalDevice, VkFormat format,
62 VkFormatProperties2KHR* pFormatProperties);
63
64VKAPI_ATTR void VKAPI_CALL terminator_GetPhysicalDeviceFormatProperties2KHR(VkPhysicalDevice physicalDevice, VkFormat format,
65 VkFormatProperties2KHR* pFormatProperties);
66
67VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceImageFormatProperties2KHR(
68 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2KHR* pImageFormatInfo,
69 VkImageFormatProperties2KHR* pImageFormatProperties);
70
71VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceImageFormatProperties2KHR(
72 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2KHR* pImageFormatInfo,
73 VkImageFormatProperties2KHR* pImageFormatProperties);
74
75VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceQueueFamilyProperties2KHR(VkPhysicalDevice physicalDevice,
76 uint32_t* pQueueFamilyPropertyCount,
77 VkQueueFamilyProperties2KHR* pQueueFamilyProperties);
78
79VKAPI_ATTR void VKAPI_CALL terminator_GetPhysicalDeviceQueueFamilyProperties2KHR(
80 VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties2KHR* pQueueFamilyProperties);
81
82VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceMemoryProperties2KHR(VkPhysicalDevice physicalDevice,
83 VkPhysicalDeviceMemoryProperties2KHR* pMemoryProperties);
84
85VKAPI_ATTR void VKAPI_CALL terminator_GetPhysicalDeviceMemoryProperties2KHR(
86 VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties2KHR* pMemoryProperties);
87
88VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceSparseImageFormatProperties2KHR(
89 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2KHR* pFormatInfo, uint32_t* pPropertyCount,
90 VkSparseImageFormatProperties2KHR* pProperties);
91
92VKAPI_ATTR void VKAPI_CALL terminator_GetPhysicalDeviceSparseImageFormatProperties2KHR(
93 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2KHR* pFormatInfo, uint32_t* pPropertyCount,
94 VkSparseImageFormatProperties2KHR* pProperties);
Lenny Komow4687c7f2017-05-30 13:04:46 -060095
96VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDevice,
97 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
98 VkSurfaceCapabilities2KHR* pSurfaceCapabilities);
99
100VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceSurfaceCapabilities2KHR(
101 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
102 VkSurfaceCapabilities2KHR* pSurfaceCapabilities);
103
104VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice,
105 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
106 uint32_t* pSurfaceFormatCount,
107 VkSurfaceFormat2KHR* pSurfaceFormats);
108
109VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice,
110 const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
111 uint32_t* pSurfaceFormatCount,
112 VkSurfaceFormat2KHR* pSurfaceFormats);
Lenny Komow728ff062017-06-01 13:32:28 -0600113
114VKAPI_ATTR VkResult VKAPI_CALL GetPhysicalDeviceSurfaceCapabilities2EXT(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface,
115 VkSurfaceCapabilities2EXT* pSurfaceCapabilities);
116
117VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceSurfaceCapabilities2EXT(VkPhysicalDevice physicalDevice,
118 VkSurfaceKHR surface,
119 VkSurfaceCapabilities2EXT* pSurfaceCapabilities);
120
121VKAPI_ATTR VkResult VKAPI_CALL ReleaseDisplayEXT(VkPhysicalDevice physicalDevice, VkDisplayKHR display);
122
123VKAPI_ATTR VkResult VKAPI_CALL terminator_ReleaseDisplayEXT(VkPhysicalDevice physicalDevice, VkDisplayKHR display);
124
125#ifdef VK_USE_PLATFORM_XLIB_XRANDR_EXT
126VKAPI_ATTR VkResult VKAPI_CALL AcquireXlibDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy, VkDisplayKHR display);
127
128VKAPI_ATTR VkResult VKAPI_CALL terminator_AcquireXlibDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy,
129 VkDisplayKHR display);
130
131VKAPI_ATTR VkResult VKAPI_CALL GetRandROutputDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy, RROutput rrOutput,
132 VkDisplayKHR* pDisplay);
133
134VKAPI_ATTR VkResult VKAPI_CALL terminator_GetRandROutputDisplayEXT(VkPhysicalDevice physicalDevice, Display* dpy, RROutput rrOutput,
135 VkDisplayKHR* pDisplay);
136#endif // VK_USE_PLATFORM_XLIB_XRANDR_EXT
Mark Youngabc2d6e2017-07-07 07:59:56 -0600137
138VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceExternalBufferPropertiesKHR(
139 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalBufferInfoKHR* pExternalBufferInfo,
140 VkExternalBufferPropertiesKHR* pExternalBufferProperties);
141
142VKAPI_ATTR void VKAPI_CALL terminator_GetPhysicalDeviceExternalBufferPropertiesKHR(
143 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalBufferInfoKHR* pExternalBufferInfo,
144 VkExternalBufferPropertiesKHR* pExternalBufferProperties);
145
146VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceExternalSemaphorePropertiesKHR(
147 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalSemaphoreInfoKHR* pExternalSemaphoreInfo,
148 VkExternalSemaphorePropertiesKHR* pExternalSemaphoreProperties);
149
150VKAPI_ATTR void VKAPI_CALL terminator_GetPhysicalDeviceExternalSemaphorePropertiesKHR(
151 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalSemaphoreInfoKHR* pExternalSemaphoreInfo,
152 VkExternalSemaphorePropertiesKHR* pExternalSemaphoreProperties);
153
154VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceExternalFencePropertiesKHR(
155 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalFenceInfoKHR* pExternalFenceInfo,
156 VkExternalFencePropertiesKHR* pExternalFenceProperties);
157
158VKAPI_ATTR void VKAPI_CALL terminator_GetPhysicalDeviceExternalFencePropertiesKHR(
159 VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalFenceInfoKHR* pExternalFenceInfo,
160 VkExternalFencePropertiesKHR* pExternalFenceProperties);