vk.xml: update to newest vulkan specification
This commit is contained in:
parent
dbb8b7ee10
commit
b3f9668c6b
20
vk.xsl
20
vk.xsl
@ -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 <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#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>
|
||||
|
Loading…
Reference in New Issue
Block a user