vk.xml: update to newest vulkan specification

This commit is contained in:
Danny Robson 2017-05-26 16:31:31 +10:00
parent dbb8b7ee10
commit b3f9668c6b
2 changed files with 2997 additions and 1582 deletions

4559
vk.xml

File diff suppressed because it is too large Load Diff

20
vk.xsl
View File

@ -48,7 +48,7 @@
</xsl:template>
<!-- we have to define these system types manually because they aren't consistent types -->
<xsl:template match="type[not(@category) and @requires and @name]" />
<xsl:template match="type[not(@category) and @name]" />
<xsl:template match="type[@category='define']" /> <!-- we handle defines manually -->
<xsl:template match="type[@category='enum']"/> <!-- handed where the values are declared -->
@ -132,6 +132,10 @@
#include &lt;cstdint&gt;
#include &lt;cstddef&gt;
#ifdef __cplusplus
extern "C" {
#endif
struct Display;
struct VisualID;
using Window = unsigned long;
@ -148,9 +152,20 @@
using HINSTANCE = HANDLE;
using HWND = HANDLE;
using SECURITY_ATTRIBUTES = HANDLE;
using DWORD = uint32_t;
using LPCWSTR = char16_t*;
struct xcb_connection_t;
struct xcb_visualid_t;
using xcb_window_t = uint32_t;
using XID = unsigned long;
using RROutput = XID;
// because, in its wisdom, the spec doesn't actually allow us to
// extract the value for VK_NULL_HANDLE from the XML we'll just
// hard code it here.
#define VK_NULL_HANDLE uintptr_t(0)
</xsl:text>
<!-- deliberately instane enums before types, as the latter depends on the former -->
@ -164,6 +179,9 @@
<xsl:apply-templates select="extensions"/>
<xsl:text>
#ifdef __cplusplus
}
#endif
#endif
</xsl:text>
</xsl:template>