1e5c31af7Sopenharmony_ci// Copyright 2016-2021 The Khronos Group, Inc.
2e5c31af7Sopenharmony_ci//
3e5c31af7Sopenharmony_ci// SPDX-License-Identifier: CC-BY-4.0
4e5c31af7Sopenharmony_ci
5e5c31af7Sopenharmony_ci[appendix]
6e5c31af7Sopenharmony_ci[[boilerplate]]
7e5c31af7Sopenharmony_ci= API Boilerplate
8e5c31af7Sopenharmony_ci
9e5c31af7Sopenharmony_ciThis appendix defines Vulkan API features that are infrastructure required
10e5c31af7Sopenharmony_cifor a complete functional description of Vulkan, but do not logically belong
11e5c31af7Sopenharmony_cielsewhere in the Specification.
12e5c31af7Sopenharmony_ci
13e5c31af7Sopenharmony_ci
14e5c31af7Sopenharmony_ci[[boilerplate-headers]]
15e5c31af7Sopenharmony_ci== Vulkan Header Files
16e5c31af7Sopenharmony_ci
17e5c31af7Sopenharmony_ciVulkan is defined as an API in the C99 language.
18e5c31af7Sopenharmony_ciKhronos provides a corresponding set of header files for applications using
19e5c31af7Sopenharmony_cithe API, which may be used in either C or C++ code.
20e5c31af7Sopenharmony_ciThe interface descriptions in the specification are the same as the
21e5c31af7Sopenharmony_ciinterfaces defined in these header files, and both are derived from the
22e5c31af7Sopenharmony_ci`vk.xml` XML API Registry, which is the canonical machine-readable
23e5c31af7Sopenharmony_cidescription of the Vulkan API.
24e5c31af7Sopenharmony_ciThe Registry, scripts used for processing it into various forms, and
25e5c31af7Sopenharmony_cidocumentation of the registry schema are available as described at
26e5c31af7Sopenharmony_cihttps://www.khronos.org/registry/vulkan/#apiregistry .
27e5c31af7Sopenharmony_ci
28e5c31af7Sopenharmony_ciLanguage bindings for other languages can be defined using the information
29e5c31af7Sopenharmony_ciin the Specification and the Registry.
30e5c31af7Sopenharmony_ciKhronos does not provide any such bindings, but third-party developers have
31e5c31af7Sopenharmony_cicreated some additional bindings.
32e5c31af7Sopenharmony_ci
33e5c31af7Sopenharmony_ci
34e5c31af7Sopenharmony_ci[[boilerplate-vulkan-h]]
35e5c31af7Sopenharmony_ci=== Vulkan Combined API Header `{full_header}` (Informative)
36e5c31af7Sopenharmony_ci
37e5c31af7Sopenharmony_ciApplications normally will include the header `{full_header}`.
38e5c31af7Sopenharmony_ciIn turn, `{full_header}` always includes the following headers:
39e5c31af7Sopenharmony_ci
40e5c31af7Sopenharmony_ci  * <<boilerplate-platform-macros,`vk_platform.h`>>, defining
41e5c31af7Sopenharmony_ci    platform-specific macros and headers.
42e5c31af7Sopenharmony_ci  * <<boilerplate-vulkan-core,`{core_header}`>>, defining APIs for the
43e5c31af7Sopenharmony_ci    Vulkan core and all registered extensions _other_ than
44e5c31af7Sopenharmony_ci    <<boilerplate-wsi-header, window system-specific>> and
45e5c31af7Sopenharmony_ci    <<boilerplate-provisional-header, provisional>> extensions, which are
46e5c31af7Sopenharmony_ci    included in separate header files.
47e5c31af7Sopenharmony_ci
48e5c31af7Sopenharmony_ciIn addition, specific preprocessor macros defined at the time
49e5c31af7Sopenharmony_ci`{full_header}` is included cause header files for the corresponding window
50e5c31af7Sopenharmony_cisystem-specific and provisional interfaces to be included, as described
51e5c31af7Sopenharmony_cibelow.
52e5c31af7Sopenharmony_ci
53e5c31af7Sopenharmony_ci
54e5c31af7Sopenharmony_ci[[boilerplate-platform-macros]]
55e5c31af7Sopenharmony_ci=== Vulkan Platform-Specific Header `vk_platform.h` (Informative)
56e5c31af7Sopenharmony_ci
57e5c31af7Sopenharmony_ciPlatform-specific macros and interfaces are defined in `vk_platform.h`.
58e5c31af7Sopenharmony_ciThese macros are used to control platform-dependent behavior, and their
59e5c31af7Sopenharmony_ciexact definitions are under the control of specific platforms and Vulkan
60e5c31af7Sopenharmony_ciimplementations.
61e5c31af7Sopenharmony_ci
62e5c31af7Sopenharmony_ci
63e5c31af7Sopenharmony_ci[[boilerplate-platform-specific-calling-conventions]]
64e5c31af7Sopenharmony_ci==== Platform-Specific Calling Conventions
65e5c31af7Sopenharmony_ci
66e5c31af7Sopenharmony_ciOn many platforms the following macros are empty strings, causing platform-
67e5c31af7Sopenharmony_ciand compiler-specific default calling conventions to be used.
68e5c31af7Sopenharmony_ci
69e5c31af7Sopenharmony_ci[open,refpage='VKAPI_ATTR',desc='Vulkan function attribute macro',type='freeform',anchor='boilerplate-platform-specific-calling-conventions',xrefs='VKAPI_CALL VKAPI_PTR']
70e5c31af7Sopenharmony_ci--
71e5c31af7Sopenharmony_cidname:VKAPI_ATTR is a macro placed before the return type in Vulkan API
72e5c31af7Sopenharmony_cifunction declarations.
73e5c31af7Sopenharmony_ciThis macro controls calling conventions for C++11 and GCC/Clang-style
74e5c31af7Sopenharmony_cicompilers.
75e5c31af7Sopenharmony_ci--
76e5c31af7Sopenharmony_ci
77e5c31af7Sopenharmony_ci[open,refpage='VKAPI_CALL',desc='Vulkan function calling conventions macro',type='freeform',anchor='boilerplate-platform-specific-calling-conventions',xrefs='VKAPI_ATTR VKAPI_PTR']
78e5c31af7Sopenharmony_ci--
79e5c31af7Sopenharmony_cidname:VKAPI_CALL is a macro placed after the return type in Vulkan API
80e5c31af7Sopenharmony_cifunction declarations.
81e5c31af7Sopenharmony_ciThis macro controls calling conventions for MSVC-style compilers.
82e5c31af7Sopenharmony_ci--
83e5c31af7Sopenharmony_ci
84e5c31af7Sopenharmony_ci[open,refpage='VKAPI_PTR',desc='Vulkan function pointer calling conventions macro',type='freeform',anchor='boilerplate-platform-specific-calling-conventions',xrefs='VKAPI_ATTR VKAPI_CALL']
85e5c31af7Sopenharmony_ci--
86e5c31af7Sopenharmony_cidname:VKAPI_PTR is a macro placed between the '(' and '*' in Vulkan API
87e5c31af7Sopenharmony_cifunction pointer declarations.
88e5c31af7Sopenharmony_ciThis macro also controls calling conventions, and typically has the same
89e5c31af7Sopenharmony_cidefinition as dname:VKAPI_ATTR or dname:VKAPI_CALL, depending on the
90e5c31af7Sopenharmony_cicompiler.
91e5c31af7Sopenharmony_ci--
92e5c31af7Sopenharmony_ci
93e5c31af7Sopenharmony_ciWith these macros, a Vulkan function declaration takes the form of:
94e5c31af7Sopenharmony_ci
95e5c31af7Sopenharmony_ci[source,c++]
96e5c31af7Sopenharmony_ci----------------------------------------
97e5c31af7Sopenharmony_ciVKAPI_ATTR <return_type> VKAPI_CALL <command_name>(<command_parameters>);
98e5c31af7Sopenharmony_ci----------------------------------------
99e5c31af7Sopenharmony_ci
100e5c31af7Sopenharmony_ciAdditionally, a Vulkan function pointer type declaration takes the form of:
101e5c31af7Sopenharmony_ci
102e5c31af7Sopenharmony_ci[source,c++]
103e5c31af7Sopenharmony_ci----------------------------------------
104e5c31af7Sopenharmony_citypedef <return_type> (VKAPI_PTR *PFN_<command_name>)(<command_parameters>);
105e5c31af7Sopenharmony_ci----------------------------------------
106e5c31af7Sopenharmony_ci
107e5c31af7Sopenharmony_ci
108e5c31af7Sopenharmony_ci[[boilerplate-platform-specific-header-control]]
109e5c31af7Sopenharmony_ci==== Platform-Specific Header Control
110e5c31af7Sopenharmony_ci
111e5c31af7Sopenharmony_ci[open,refpage='VK_NO_STDINT_H',desc='Control definition of <stdint.h> types',type='freeform',anchor='boilerplate-platform-specific-header-control']
112e5c31af7Sopenharmony_ci--
113e5c31af7Sopenharmony_ciIf the dname:VK_NO_STDINT_H macro is defined by the application at compile
114e5c31af7Sopenharmony_citime, extended integer types used by the Vulkan API, such as code:uint8_t,
115e5c31af7Sopenharmony_cimust: also be defined by the application.
116e5c31af7Sopenharmony_ciOtherwise, the Vulkan headers will not compile.
117e5c31af7Sopenharmony_ciIf dname:VK_NO_STDINT_H is not defined, the system `<stdint.h>` is used to
118e5c31af7Sopenharmony_cidefine these types.
119e5c31af7Sopenharmony_ciThere is a fallback path when Microsoft Visual Studio version 2008 and
120e5c31af7Sopenharmony_ciearlier versions are detected at compile time.
121e5c31af7Sopenharmony_ci--
122e5c31af7Sopenharmony_ci
123e5c31af7Sopenharmony_ci[open,refpage='VK_NO_STDDEF_H',desc='Control definition of <stddef.h> types',type='freeform',anchor='boilerplate-platform-specific-header-control']
124e5c31af7Sopenharmony_ci--
125e5c31af7Sopenharmony_ciIf the dname:VK_NO_STDDEF_H macro is defined by the application at compile
126e5c31af7Sopenharmony_citime, code:size_t, must: also be defined by the application.
127e5c31af7Sopenharmony_ciOtherwise, the Vulkan headers will not compile.
128e5c31af7Sopenharmony_ciIf dname:VK_NO_STDDEF_H is not defined, the system `<stddef.h>` is used to
129e5c31af7Sopenharmony_cidefine this type.
130e5c31af7Sopenharmony_ci--
131e5c31af7Sopenharmony_ci
132e5c31af7Sopenharmony_ci
133e5c31af7Sopenharmony_ci[[boilerplate-vulkan-core]]
134e5c31af7Sopenharmony_ci=== Vulkan Core API Header `{core_header}`
135e5c31af7Sopenharmony_ci
136e5c31af7Sopenharmony_ciApplications that do not make use of window system-specific extensions may
137e5c31af7Sopenharmony_cisimply include `{core_header}` instead of `{full_header}`, although there is
138e5c31af7Sopenharmony_ciusually no reason to do so.
139e5c31af7Sopenharmony_ciIn addition to the Vulkan API, `{core_header}` also defines a small number
140e5c31af7Sopenharmony_ciof C preprocessor macros that are described below.
141e5c31af7Sopenharmony_ci
142e5c31af7Sopenharmony_ci
143e5c31af7Sopenharmony_ci
144e5c31af7Sopenharmony_ci
145e5c31af7Sopenharmony_ci
146e5c31af7Sopenharmony_ci==== Vulkan Header File Version Number
147e5c31af7Sopenharmony_ci
148e5c31af7Sopenharmony_ci[open,refpage='VK_HEADER_VERSION',desc='Vulkan header file version number',type='defines']
149e5c31af7Sopenharmony_ci--
150e5c31af7Sopenharmony_cidname:VK_HEADER_VERSION is the version number of the `{core_header}` header.
151e5c31af7Sopenharmony_ciThis value is kept synchronized with the patch version of the released
152e5c31af7Sopenharmony_ciSpecification.
153e5c31af7Sopenharmony_ci
154e5c31af7Sopenharmony_ciinclude::{generated}/api/defines/VK_HEADER_VERSION.txt[]
155e5c31af7Sopenharmony_ci--
156e5c31af7Sopenharmony_ci
157e5c31af7Sopenharmony_ci[open,refpage='VK_HEADER_VERSION_COMPLETE',desc='Vulkan header file complete version number',type='defines']
158e5c31af7Sopenharmony_ci--
159e5c31af7Sopenharmony_cidname:VK_HEADER_VERSION_COMPLETE is the complete version number of the
160e5c31af7Sopenharmony_ci`{core_header}` header, comprising the major, minor, and patch versions.
161e5c31af7Sopenharmony_ciThe major/minor values are kept synchronized with the complete version of
162e5c31af7Sopenharmony_cithe released Specification.
163e5c31af7Sopenharmony_ciThis value is intended for use by automated tools to identify exactly which
164e5c31af7Sopenharmony_civersion of the header was used during their generation.
165e5c31af7Sopenharmony_ci
166e5c31af7Sopenharmony_ciApplications should not use this value as their
167e5c31af7Sopenharmony_cislink:VkApplicationInfo::pname:apiVersion.
168e5c31af7Sopenharmony_ciInstead applications should explicitly select a specific fixed major/minor
169e5c31af7Sopenharmony_ciAPI version using, for example, one of the dname:VK_API_VERSION_*_* values.
170e5c31af7Sopenharmony_ci
171e5c31af7Sopenharmony_ciinclude::{generated}/api/defines/VK_HEADER_VERSION_COMPLETE.txt[]
172e5c31af7Sopenharmony_ci--
173e5c31af7Sopenharmony_ci
174e5c31af7Sopenharmony_ci[open,refpage='VK_API_VERSION',desc='Deprecated version number macro',type='defines']
175e5c31af7Sopenharmony_ci--
176e5c31af7Sopenharmony_cidname:VK_API_VERSION is now commented out of `{core_header}` and cannot: be
177e5c31af7Sopenharmony_ciused.
178e5c31af7Sopenharmony_ci
179e5c31af7Sopenharmony_ciinclude::{generated}/api/defines/VK_API_VERSION.txt[]
180e5c31af7Sopenharmony_ci--
181e5c31af7Sopenharmony_ci
182e5c31af7Sopenharmony_ci
183e5c31af7Sopenharmony_ci==== Vulkan Handle Macros
184e5c31af7Sopenharmony_ci
185e5c31af7Sopenharmony_ci[open,refpage='VK_DEFINE_HANDLE',desc='Declare a dispatchable object handle',type='defines',xrefs='VkCommandBuffer VkDevice VkInstance VkPhysicalDevice VkQueue']
186e5c31af7Sopenharmony_ci--
187e5c31af7Sopenharmony_cidname:VK_DEFINE_HANDLE defines a <<fundamentals-objectmodel-overview,
188e5c31af7Sopenharmony_cidispatchable handle>> type.
189e5c31af7Sopenharmony_ci
190e5c31af7Sopenharmony_ciinclude::{generated}/api/defines/VK_DEFINE_HANDLE.txt[]
191e5c31af7Sopenharmony_ci
192e5c31af7Sopenharmony_ci  * pname:object is the name of the resulting C type.
193e5c31af7Sopenharmony_ci
194e5c31af7Sopenharmony_ciThe only dispatchable handle types are those related to device and instance
195e5c31af7Sopenharmony_cimanagement, such as slink:VkDevice.
196e5c31af7Sopenharmony_ci--
197e5c31af7Sopenharmony_ci
198e5c31af7Sopenharmony_ci[open,refpage='VK_DEFINE_NON_DISPATCHABLE_HANDLE',desc='Declare a non-dispatchable object handle',type='defines',xrefs='VkBuffer']
199e5c31af7Sopenharmony_ci--
200e5c31af7Sopenharmony_cidname:VK_DEFINE_NON_DISPATCHABLE_HANDLE defines a
201e5c31af7Sopenharmony_ci<<fundamentals-objectmodel-overview, non-dispatchable handle>> type.
202e5c31af7Sopenharmony_ci
203e5c31af7Sopenharmony_ciinclude::{generated}/api/defines/VK_DEFINE_NON_DISPATCHABLE_HANDLE.txt[]
204e5c31af7Sopenharmony_ci
205e5c31af7Sopenharmony_ci  * pname:object is the name of the resulting C type.
206e5c31af7Sopenharmony_ci
207e5c31af7Sopenharmony_ciMost Vulkan handle types, such as slink:VkBuffer, are non-dispatchable.
208e5c31af7Sopenharmony_ci
209e5c31af7Sopenharmony_ci[NOTE]
210e5c31af7Sopenharmony_ci.Note
211e5c31af7Sopenharmony_ci====
212e5c31af7Sopenharmony_ciThe `{core_header}` header allows the
213e5c31af7Sopenharmony_cidname:VK_DEFINE_NON_DISPATCHABLE_HANDLE and dname:VK_NULL_HANDLE definitions
214e5c31af7Sopenharmony_cito be overridden by the application.
215e5c31af7Sopenharmony_ciIf dname:VK_DEFINE_NON_DISPATCHABLE_HANDLE is already defined when
216e5c31af7Sopenharmony_ci`{core_header}` is compiled, the default definitions for
217e5c31af7Sopenharmony_cidname:VK_DEFINE_NON_DISPATCHABLE_HANDLE and dname:VK_NULL_HANDLE are
218e5c31af7Sopenharmony_ciskipped.
219e5c31af7Sopenharmony_ciThis allows the application to define a binary-compatible custom handle
220e5c31af7Sopenharmony_ciwhich may: provide more type-safety or other features needed by the
221e5c31af7Sopenharmony_ciapplication.
222e5c31af7Sopenharmony_ciApplications must: not define handles in a way that is not binary compatible
223e5c31af7Sopenharmony_ci- where binary compatibility is platform dependent.
224e5c31af7Sopenharmony_ci====
225e5c31af7Sopenharmony_ci--
226e5c31af7Sopenharmony_ci
227e5c31af7Sopenharmony_ci[open,refpage='VK_NULL_HANDLE',desc='Reserved non-valid object handle',type='defines']
228e5c31af7Sopenharmony_ci--
229e5c31af7Sopenharmony_cidname:VK_NULL_HANDLE is a reserved value representing a non-valid object
230e5c31af7Sopenharmony_cihandle.
231e5c31af7Sopenharmony_ciIt may be passed to and returned from Vulkan commands only when
232e5c31af7Sopenharmony_ci<<fundamentals-validusage-handles, specifically allowed>>.
233e5c31af7Sopenharmony_ci
234e5c31af7Sopenharmony_ciinclude::{generated}/api/defines/VK_NULL_HANDLE.txt[]
235e5c31af7Sopenharmony_ci--
236e5c31af7Sopenharmony_ci
237e5c31af7Sopenharmony_ci[open,refpage='VK_USE_64_BIT_PTR_DEFINES',desc='Defines whether non-dispatchable handles are a 64-bit pointer type or a 64-bit unsigned integer type',type='defines']
238e5c31af7Sopenharmony_ci--
239e5c31af7Sopenharmony_cidname:VK_USE_64_BIT_PTR_DEFINES defines whether the default non-dispatchable
240e5c31af7Sopenharmony_cihandles are declared using either a 64-bit pointer type or a 64-bit unsigned
241e5c31af7Sopenharmony_ciinteger type.
242e5c31af7Sopenharmony_ci
243e5c31af7Sopenharmony_cidname:VK_USE_64_BIT_PTR_DEFINES is set to '1' to use a 64-bit pointer type
244e5c31af7Sopenharmony_cior any other value to use a 64-bit unsigned integer type.
245e5c31af7Sopenharmony_ci
246e5c31af7Sopenharmony_ciinclude::{generated}/api/defines/VK_USE_64_BIT_PTR_DEFINES.txt[]
247e5c31af7Sopenharmony_ci
248e5c31af7Sopenharmony_ci[NOTE]
249e5c31af7Sopenharmony_ci.Note
250e5c31af7Sopenharmony_ci====
251e5c31af7Sopenharmony_ciThe `{core_header}` header allows the dname:VK_USE_64_BIT_PTR_DEFINES
252e5c31af7Sopenharmony_cidefinition to be overridden by the application.
253e5c31af7Sopenharmony_ciThis allows the application to select either a 64-bit pointer type or a
254e5c31af7Sopenharmony_ci64-bit unsigned integer type for non-dispatchable handles in the case where
255e5c31af7Sopenharmony_cithe predefined preprocessor check does not identify the desired
256e5c31af7Sopenharmony_ciconfiguration.
257e5c31af7Sopenharmony_ci====
258e5c31af7Sopenharmony_ci
259e5c31af7Sopenharmony_ci--
260e5c31af7Sopenharmony_ci
261e5c31af7Sopenharmony_ci[[boilerplate-wsi-header]]
262e5c31af7Sopenharmony_ci== Window System-Specific Header Control (Informative)
263e5c31af7Sopenharmony_ci
264e5c31af7Sopenharmony_ci[open,refpage='WSIheaders',desc='Control inclusion of window system interface extensions',type='freeform',anchor='boilerplate-wsi-header',xrefs='provisional-headers']
265e5c31af7Sopenharmony_ci--
266e5c31af7Sopenharmony_ciTo use a Vulkan extension supporting a platform-specific window system,
267e5c31af7Sopenharmony_ciheader files for that window systems must: be included at compile time, or
268e5c31af7Sopenharmony_ciplatform-specific types must: be forward-declared.
269e5c31af7Sopenharmony_ciThe Vulkan header files cannot determine whether or not an external header
270e5c31af7Sopenharmony_ciis available at compile time, so platform-specific extensions are provided
271e5c31af7Sopenharmony_ciin separate headers from the core API and platform-independent extensions,
272e5c31af7Sopenharmony_ciallowing applications to decide which ones should be defined and how the
273e5c31af7Sopenharmony_ciexternal headers are included.
274e5c31af7Sopenharmony_ci
275e5c31af7Sopenharmony_ciExtensions dependent on particular sets of platform headers, or that
276e5c31af7Sopenharmony_ciforward-declare platform-specific types, are declared in a header named for
277e5c31af7Sopenharmony_cithat platform.
278e5c31af7Sopenharmony_ciBefore including these platform-specific Vulkan headers, applications must:
279e5c31af7Sopenharmony_ciinclude both `{core_header}` and any external native headers the platform
280e5c31af7Sopenharmony_ciextensions depend on.
281e5c31af7Sopenharmony_ci
282e5c31af7Sopenharmony_ciAs a convenience for applications that do not need the flexibility of
283e5c31af7Sopenharmony_ciseparate platform-specific Vulkan headers, `{full_header}` includes
284e5c31af7Sopenharmony_ci`{core_header}`, and then conditionally includes platform-specific Vulkan
285e5c31af7Sopenharmony_ciheaders and the external headers they depend on.
286e5c31af7Sopenharmony_ciApplications control which platform-specific headers are included by
287e5c31af7Sopenharmony_ci#defining macros before including `{full_header}`.
288e5c31af7Sopenharmony_ci
289e5c31af7Sopenharmony_ciThe correspondence between platform-specific extensions, external headers
290e5c31af7Sopenharmony_cithey require, the platform-specific header which declares them, and the
291e5c31af7Sopenharmony_cipreprocessor macros which enable inclusion by `{full_header}` are shown in
292e5c31af7Sopenharmony_cithe <<boilerplate-wsi-header-table,following table>>.
293e5c31af7Sopenharmony_ci
294e5c31af7Sopenharmony_ci[[boilerplate-wsi-header-table]]
295e5c31af7Sopenharmony_ci.Window System Extensions and Headers
296e5c31af7Sopenharmony_ci[options="header"]
297e5c31af7Sopenharmony_ci|====
298e5c31af7Sopenharmony_ci| Extension Name                     | Window System Name | Platform-specific Header | Required External Headers      | Controlling `{full_header}` Macro
299e5c31af7Sopenharmony_ci| `apiext:VK_KHR_android_surface`       | Android            | `vulkan_android.h`       | None                           | dname:VK_USE_PLATFORM_ANDROID_KHR
300e5c31af7Sopenharmony_ci| `apiext:VK_KHR_wayland_surface`       | Wayland            | `vulkan_wayland.h`       | `<wayland-client.h>`           | dname:VK_USE_PLATFORM_WAYLAND_KHR
301e5c31af7Sopenharmony_ci| `apiext:VK_KHR_win32_surface`,
302e5c31af7Sopenharmony_ci  `apiext:VK_KHR_external_memory_win32`,
303e5c31af7Sopenharmony_ci  `apiext:VK_KHR_win32_keyed_mutex`,
304e5c31af7Sopenharmony_ci  `apiext:VK_KHR_external_semaphore_win32`,
305e5c31af7Sopenharmony_ci  `apiext:VK_KHR_external_fence_win32`,
306e5c31af7Sopenharmony_ciifdef::VK_NV_external_memory_win32[]
307e5c31af7Sopenharmony_ci  `apiext:VK_NV_external_memory_win32`,
308e5c31af7Sopenharmony_ciendif::VK_NV_external_memory_win32[]
309e5c31af7Sopenharmony_ciifdef::VK_NV_win32_keyed_mutex[]
310e5c31af7Sopenharmony_ci  `apiext:VK_NV_win32_keyed_mutex`
311e5c31af7Sopenharmony_ciendif::VK_NV_win32_keyed_mutex[]
312e5c31af7Sopenharmony_ci                                     | Microsoft Windows      | `vulkan_win32.h`         | `<windows.h>`                  | dname:VK_USE_PLATFORM_WIN32_KHR
313e5c31af7Sopenharmony_ci| `apiext:VK_KHR_xcb_surface`           | X11 Xcb                | `vulkan_xcb.h`           | `<xcb/xcb.h>`                  | dname:VK_USE_PLATFORM_XCB_KHR
314e5c31af7Sopenharmony_ci| `apiext:VK_KHR_xlib_surface`          | X11 Xlib               | `vulkan_xlib.h`          | `<X11/Xlib.h>`                 | dname:VK_USE_PLATFORM_XLIB_KHR
315e5c31af7Sopenharmony_ciifdef::VK_EXT_directfb_surface[]
316e5c31af7Sopenharmony_ci| `apiext:VK_EXT_directfb_surface`      | DirectFB               | `vulkan_directfb.h`      | `<directfb/directfb.h>`        | dname:VK_USE_PLATFORM_DIRECTFB_EXT
317e5c31af7Sopenharmony_ciendif::VK_EXT_directfb_surface[]
318e5c31af7Sopenharmony_ciifdef::VK_EXT_acquire_xlib_display[]
319e5c31af7Sopenharmony_ci| `apiext:VK_EXT_acquire_xlib_display`  | X11 XRAndR             | `vulkan_xlib_xrandr.h`   | `<X11/Xlib.h>`,
320e5c31af7Sopenharmony_ci                                                                                           `<X11/extensions{wbro}/Xrandr.h>`    | dname:VK_USE_PLATFORM_XLIB_XRANDR_EXT
321e5c31af7Sopenharmony_ciendif::VK_EXT_acquire_xlib_display[]
322e5c31af7Sopenharmony_ciifdef::VK_GGP_stream_descriptor_surface[]
323e5c31af7Sopenharmony_ci| `apiext:VK_GGP_stream_descriptor_surface`,
324e5c31af7Sopenharmony_ci  `apiext:VK_GGP_frame_token`
325e5c31af7Sopenharmony_ci                                     | Google Games Platform | `vulkan_ggp.h`        | <ggp_c/vulkan_types.h>         | dname:VK_USE_PLATFORM_GGP
326e5c31af7Sopenharmony_ciendif::VK_GGP_stream_descriptor_surface[]
327e5c31af7Sopenharmony_ciifdef::VK_MVK_ios_surface[]
328e5c31af7Sopenharmony_ci| `apiext:VK_MVK_ios_surface`           | iOS                    | `vulkan_ios.h`           | None                           | dname:VK_USE_PLATFORM_IOS_MVK
329e5c31af7Sopenharmony_ciendif::VK_MVK_ios_surface[]
330e5c31af7Sopenharmony_ciifdef::VK_MVK_macos_surface[]
331e5c31af7Sopenharmony_ci| `apiext:VK_MVK_macos_surface`         | macOS                  | `vulkan_macos.h`         | None                           | dname:VK_USE_PLATFORM_MACOS_MVK
332e5c31af7Sopenharmony_ciendif::VK_MVK_macos_surface[]
333e5c31af7Sopenharmony_ciifdef::VK_NN_vi_surface[]
334e5c31af7Sopenharmony_ci| `apiext:VK_NN_vi_surface`             | VI                     | `vulkan_vi.h`            | None                           | dname:VK_USE_PLATFORM_VI_NN
335e5c31af7Sopenharmony_ciendif::VK_NN_vi_surface[]
336e5c31af7Sopenharmony_ciifdef::VK_FUCHSIA_imagepipe_surface[]
337e5c31af7Sopenharmony_ci| `apiext:VK_FUCHSIA_imagepipe_surface` | Fuchsia                | `vulkan_fuchsia.h`       | `<zircon/types.h>`             | dname:VK_USE_PLATFORM_FUCHSIA
338e5c31af7Sopenharmony_ciendif::VK_FUCHSIA_imagepipe_surface[]
339e5c31af7Sopenharmony_ciifdef::VK_EXT_metal_surface[]
340e5c31af7Sopenharmony_ci| `apiext:VK_EXT_metal_surface`         | Metal on CoreAnimation | `vulkan_metal.h`         | None                           | dname:VK_USE_PLATFORM_METAL_EXT
341e5c31af7Sopenharmony_ciendif::VK_EXT_metal_surface[]
342e5c31af7Sopenharmony_ciifdef::VK_QNX_screen_surface[]
343e5c31af7Sopenharmony_ci| `apiext:VK_QNX_screen_surface`        | QNX Screen             | `vulkan_screen.h`        | `<screen/screen.h>`            | dname:VK_USE_PLATFORM_SCREEN_QNX
344e5c31af7Sopenharmony_ciendif::VK_QNX_screen_surface[]
345e5c31af7Sopenharmony_ci|====
346e5c31af7Sopenharmony_ci
347e5c31af7Sopenharmony_ci[NOTE]
348e5c31af7Sopenharmony_ci.Note
349e5c31af7Sopenharmony_ci====
350e5c31af7Sopenharmony_ciThis section describes the purpose of the headers independently of the
351e5c31af7Sopenharmony_cispecific underlying functionality of the window system extensions
352e5c31af7Sopenharmony_cithemselves.
353e5c31af7Sopenharmony_ciEach extension name will only link to a description of that extension when
354e5c31af7Sopenharmony_civiewing a specification built with that extension included.
355e5c31af7Sopenharmony_ci====
356e5c31af7Sopenharmony_ci--
357e5c31af7Sopenharmony_ci
358e5c31af7Sopenharmony_ci
359e5c31af7Sopenharmony_ci[[boilerplate-provisional-header]]
360e5c31af7Sopenharmony_ci== Provisional Extension Header Control (Informative)
361e5c31af7Sopenharmony_ci
362e5c31af7Sopenharmony_ci[open,refpage='provisional-headers',desc='Control inclusion of provisional extensions',type='freeform',alias='VK_ENABLE_BETA_EXTENSIONS',anchor='boilerplate-provisional-header',xrefs='WSIheaders']
363e5c31af7Sopenharmony_ci--
364e5c31af7Sopenharmony_ci_Provisional_ extensions should: not be used in production applications.
365e5c31af7Sopenharmony_ciThe functionality defined by such extensions may: change in ways that break
366e5c31af7Sopenharmony_cibackwards compatibility between revisions, and before final release of a
367e5c31af7Sopenharmony_cinon-provisional version of that extension.
368e5c31af7Sopenharmony_ci
369e5c31af7Sopenharmony_ciProvisional extensions are defined in a separate _provisional header_,
370e5c31af7Sopenharmony_ci`vulkan_beta.h`, allowing applications to decide whether or not to include
371e5c31af7Sopenharmony_cithem.
372e5c31af7Sopenharmony_ciThe mechanism is similar to <<boilerplate-wsi-header, window system-specific
373e5c31af7Sopenharmony_ciheaders>>: before including `vulkan_beta.h`, applications must: include
374e5c31af7Sopenharmony_ci`{core_header}`.
375e5c31af7Sopenharmony_ci
376e5c31af7Sopenharmony_ci[NOTE]
377e5c31af7Sopenharmony_ci.Note
378e5c31af7Sopenharmony_ci====
379e5c31af7Sopenharmony_ciSometimes a provisional extension will include a subset of its interfaces in
380e5c31af7Sopenharmony_ci`{core_header}`.
381e5c31af7Sopenharmony_ciThis may occur if the provisional extension is promoted from an existing
382e5c31af7Sopenharmony_civendor or EXT extension and some of the existing interfaces are defined as
383e5c31af7Sopenharmony_cialiases of the provisional extension interfaces.
384e5c31af7Sopenharmony_ciAll other interfaces of that provisional extension which are not aliased
385e5c31af7Sopenharmony_ciwill be included in `vulkan_beta.h`.
386e5c31af7Sopenharmony_ci====
387e5c31af7Sopenharmony_ci
388e5c31af7Sopenharmony_ciAs a convenience for applications, `{full_header}` conditionally includes
389e5c31af7Sopenharmony_ci`vulkan_beta.h`.
390e5c31af7Sopenharmony_ciApplications can: control inclusion of `vulkan_beta.h` by #defining the
391e5c31af7Sopenharmony_cimacro etext:VK_ENABLE_BETA_EXTENSIONS before including `{full_header}`.
392e5c31af7Sopenharmony_ci
393e5c31af7Sopenharmony_ci[NOTE]
394e5c31af7Sopenharmony_ci.Note
395e5c31af7Sopenharmony_ci====
396e5c31af7Sopenharmony_ciStarting in version 1.2.171 of the Specification, all provisional enumerants
397e5c31af7Sopenharmony_ciare protected by the macro etext:VK_ENABLE_BETA_EXTENSIONS.
398e5c31af7Sopenharmony_ciApplications needing to use provisional extensions must always define this
399e5c31af7Sopenharmony_cimacro, even if they are explicitly including `vulkan_beta.h`.
400e5c31af7Sopenharmony_ciThis is a minor change to behavior, affecting only provisional extensions.
401e5c31af7Sopenharmony_ci====
402e5c31af7Sopenharmony_ci
403e5c31af7Sopenharmony_ci[NOTE]
404e5c31af7Sopenharmony_ci.Note
405e5c31af7Sopenharmony_ci====
406e5c31af7Sopenharmony_ciThis section describes the purpose of the provisional header independently
407e5c31af7Sopenharmony_ciof the specific provisional extensions which are contained in that header at
408e5c31af7Sopenharmony_ciany given time.
409e5c31af7Sopenharmony_ciThe extension appendices for provisional extensions note their provisional
410e5c31af7Sopenharmony_cistatus, and link back to this section for more information.
411e5c31af7Sopenharmony_ciProvisional extensions are intended to provide early access for
412e5c31af7Sopenharmony_cibleeding-edge developers, with the understanding that extension interfaces
413e5c31af7Sopenharmony_cimay change in response to developer feedback.
414e5c31af7Sopenharmony_ciProvisional extensions are very likely to eventually be updated and released
415e5c31af7Sopenharmony_cias non-provisional extensions, but there is no guarantee this will happen,
416e5c31af7Sopenharmony_cior how long it will take if it does happen.
417e5c31af7Sopenharmony_ci====
418e5c31af7Sopenharmony_ci--
419