diff options
author | Mark Lobodzinski <[email protected]> | 2018-07-02 14:52:03 -0600 |
---|---|---|
committer | Mark Lobodzinski <[email protected]> | 2018-07-03 11:23:22 -0600 |
commit | 1ebb2c0f7d5911a027a7fcbfe15164caac77e2f8 (patch) | |
tree | 85f1d9cb151e7651773c95c602d335d81710dc74 | |
parent | 0642c1b85957dec68104f4f6f9c57e9a7edd3541 (diff) | |
download | Vulkan-Headers-1ebb2c0f7d5911a027a7fcbfe15164caac77e2f8.tar.gz Vulkan-Headers-1ebb2c0f7d5911a027a7fcbfe15164caac77e2f8.zip |
header: Update to version 1.1.79 of the Vulkan hdr
- update vk.xml
- update vulkan_core.h
- update validusage.json
- update vulkan.hpp
-rw-r--r-- | include/vulkan/vulkan.hpp | 20 | ||||
-rw-r--r-- | include/vulkan/vulkan_core.h | 12 | ||||
-rw-r--r-- | registry/validusage.json | 14 | ||||
-rw-r--r-- | registry/vk.xml | 28 |
4 files changed, 57 insertions, 17 deletions
diff --git a/include/vulkan/vulkan.hpp b/include/vulkan/vulkan.hpp index 2efc911..df24587 100644 --- a/include/vulkan/vulkan.hpp +++ b/include/vulkan/vulkan.hpp @@ -53,7 +53,7 @@ # include <cassert> # define VULKAN_HPP_ASSERT assert #endif -static_assert( VK_HEADER_VERSION == 78 , "Wrong VK_HEADER_VERSION!" ); +static_assert( VK_HEADER_VERSION == 79 , "Wrong VK_HEADER_VERSION!" ); // 32-bit vulkan is not typesafe for handles, so don't allow copy constructors on this platform by default. // To enable this feature on 32-bit platforms please define VULKAN_HPP_TYPESAFE_CONVERSION @@ -30548,6 +30548,13 @@ public: }; static_assert( sizeof( DescriptorSetLayoutBindingFlagsCreateInfoEXT ) == sizeof( VkDescriptorSetLayoutBindingFlagsCreateInfoEXT ), "struct and wrapper have different size!" ); + enum class VendorId + { + eViv = VK_VENDOR_ID_VIV, + eVsi = VK_VENDOR_ID_VSI, + eKazan = VK_VENDOR_ID_KAZAN + }; + template<typename Dispatch = DispatchLoaderStatic> Result enumerateInstanceVersion( uint32_t* pApiVersion, Dispatch const &d = Dispatch() ); #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE @@ -43114,6 +43121,17 @@ public: return "{" + result.substr(0, result.size() - 3) + "}"; } + VULKAN_HPP_INLINE std::string to_string(VendorId value) + { + switch (value) + { + case VendorId::eViv: return "Viv"; + case VendorId::eVsi: return "Vsi"; + case VendorId::eKazan: return "Kazan"; + default: return "invalid"; + } + } + class DispatchLoaderDynamic { public: diff --git a/include/vulkan/vulkan_core.h b/include/vulkan/vulkan_core.h index 75b4cf9..93aa65b 100644 --- a/include/vulkan/vulkan_core.h +++ b/include/vulkan/vulkan_core.h @@ -43,7 +43,7 @@ extern "C" { #define VK_VERSION_MINOR(version) (((uint32_t)(version) >> 12) & 0x3ff) #define VK_VERSION_PATCH(version) ((uint32_t)(version) & 0xfff) // Version of this file -#define VK_HEADER_VERSION 78 +#define VK_HEADER_VERSION 79 #define VK_NULL_HANDLE 0 @@ -1214,6 +1214,16 @@ typedef enum VkObjectType { VK_OBJECT_TYPE_MAX_ENUM = 0x7FFFFFFF } VkObjectType; +typedef enum VkVendorId { + VK_VENDOR_ID_VIV = 0x10001, + VK_VENDOR_ID_VSI = 0x10002, + VK_VENDOR_ID_KAZAN = 0x10003, + VK_VENDOR_ID_BEGIN_RANGE = VK_VENDOR_ID_VIV, + VK_VENDOR_ID_END_RANGE = VK_VENDOR_ID_KAZAN, + VK_VENDOR_ID_RANGE_SIZE = (VK_VENDOR_ID_KAZAN - VK_VENDOR_ID_VIV + 1), + VK_VENDOR_ID_MAX_ENUM = 0x7FFFFFFF +} VkVendorId; + typedef VkFlags VkInstanceCreateFlags; typedef enum VkFormatFeatureFlagBits { diff --git a/registry/validusage.json b/registry/validusage.json index 22f65ba..1bd6b30 100644 --- a/registry/validusage.json +++ b/registry/validusage.json @@ -1,9 +1,9 @@ { "version info": { "schema version": 2, - "api version": "1.1.78", - "comment": "from git branch: master commit: 9582bcb54e2cd0ea9441664fa6563e2687a9e32d", - "date": "2018-06-26 18:07:14Z" + "api version": "1.1.79", + "comment": "from git branch: master commit: ff9357a4bad5fa49b99b9d3f69d254e2a3f0f575", + "date": "2018-07-02 20:23:28Z" }, "validation": { "vkGetInstanceProcAddr": { @@ -5797,10 +5797,6 @@ { "vuid": "VUID-vkGetDeviceGroupPeerMemoryFeatures-pPeerMemoryFeatures-parameter", "text": " <code>pPeerMemoryFeatures</code> <strong class=\"purple\">must</strong> be a valid pointer to a <a href=\"#VkPeerMemoryFeatureFlags\">VkPeerMemoryFeatureFlags</a> value" - }, - { - "vuid": "VUID-vkGetDeviceGroupPeerMemoryFeatures-pPeerMemoryFeatures-requiredbitmask", - "text": " <code>pPeerMemoryFeatures</code> <strong class=\"purple\">must</strong> not be <code>0</code>" } ] }, @@ -8965,6 +8961,10 @@ ], "core": [ { + "vuid": "VUID-VkDescriptorImageInfo-imageView-01976", + "text": " If <code>imageView</code> is created from a depth/stencil image, the <code>aspectMask</code> used to create the <code>imageView</code> <strong class=\"purple\">must</strong> include either <code>VK_IMAGE_ASPECT_DEPTH_BIT</code> or <code>VK_IMAGE_ASPECT_STENCIL_BIT</code> but not both." + }, + { "vuid": "VUID-VkDescriptorImageInfo-imageLayout-00344", "text": " <code>imageLayout</code> <strong class=\"purple\">must</strong> match the actual <a href=\"#VkImageLayout\">VkImageLayout</a> of each subresource accessible from <code>imageView</code> at the time this descriptor is accessed" }, diff --git a/registry/vk.xml b/registry/vk.xml index 5ae506e..99f0c6a 100644 --- a/registry/vk.xml +++ b/registry/vk.xml @@ -44,13 +44,6 @@ private version is maintained in the master branch of the member gitlab server. </comment> - <vendorids comment="Vulkan vendor IDs for physical devices without PCI vendor IDs"> - <vendorid name="KHR" id="0x10000" comment="This is the next available Khronos vendor ID"/> - <vendorid name="VIV" id="0x10001" comment="Vivante vendor ID"/> - <vendorid name="VSI" id="0x10002" comment="VeriSilicon vendor ID"/> - <vendorid name="KAZAN" id="0x10003" comment="Kazan Software Renderer"/> - </vendorids> - <platforms comment="Vulkan platform names, reserved for use with platform- and window system-specific extensions"> <platform name="xlib" protect="VK_USE_PLATFORM_XLIB_KHR" comment="X Window System, Xlib client library"/> <platform name="xlib_xrandr" protect="VK_USE_PLATFORM_XLIB_XRANDR_EXT" comment="X Window System, Xlib client library, XRandR extension"/> @@ -153,7 +146,7 @@ server. <type category="define">// Vulkan 1.1 version number #define <name>VK_API_VERSION_1_1</name> <type>VK_MAKE_VERSION</type>(1, 1, 0)// Patch version should always be set to 0</type> <type category="define">// Version of this file -#define <name>VK_HEADER_VERSION</name> 78</type> +#define <name>VK_HEADER_VERSION</name> 79</type> <type category="define"> #define <name>VK_DEFINE_HANDLE</name>(object) typedef struct object##_T* object;</type> @@ -515,6 +508,9 @@ server. <type name="VkDebugUtilsMessageSeverityFlagBitsEXT" category="enum"/> <type name="VkDebugUtilsMessageTypeFlagBitsEXT" category="enum"/> + <comment>Enumerated types in the header, but not used by the API</comment> + <type name="VkVendorId" category="enum"/> + <comment>The PFN_vk*Function types are used by VkAllocationCallbacks below</comment> <type category="funcpointer">typedef void (VKAPI_PTR *<name>PFN_vkInternalAllocationNotification</name>)( <type>void</type>* pUserData, @@ -4179,6 +4175,15 @@ server. <enum bitpos="2" name="VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT_EXT"/> <enum bitpos="3" name="VK_DESCRIPTOR_BINDING_VARIABLE_DESCRIPTOR_COUNT_BIT_EXT"/> </enums> + <enums name="VkVendorId" type="enum"> + <comment>Vendor IDs are now represented as enums instead of the old + <vendorids> tag, allowing them to be included in the + API headers.</comment> + <enum value="0x10001" name="VK_VENDOR_ID_VIV" comment="Vivante vendor ID"/> + <enum value="0x10002" name="VK_VENDOR_ID_VSI" comment="VeriSilicon vendor ID"/> + <enum value="0x10003" name="VK_VENDOR_ID_KAZAN" comment="Kazan Software Renderer"/> + <unused start="0x10004" comment="This is the next unused available Khronos vendor ID"/> + </enums> <commands comment="Vulkan command definitions"> <command successcodes="VK_SUCCESS" errorcodes="VK_ERROR_OUT_OF_HOST_MEMORY,VK_ERROR_OUT_OF_DEVICE_MEMORY,VK_ERROR_INITIALIZATION_FAILED,VK_ERROR_LAYER_NOT_PRESENT,VK_ERROR_EXTENSION_NOT_PRESENT,VK_ERROR_INCOMPATIBLE_DRIVER"> @@ -6328,6 +6333,7 @@ server. <type name="VkObjectType"/> <type name="VkBaseOutStructure"/> <type name="VkBaseInStructure"/> + <type name="VkVendorId"/> </require> </feature> <feature api="vulkan" name="VK_VERSION_1_1" number="1.1" comment="Vulkan 1.1 core API interface definitions."> @@ -8826,5 +8832,11 @@ server. <enum value=""VK_KHR_extension_211"" name="VK_KHR_EXTENSION_211_EXTENSION_NAME"/> </require> </extension> + <extension name="VK_KHR_extension_212" number="212" type="device" author="KHR" contact="Jeff Bolz @jeffbolznv" supported="disabled"> + <require> + <enum value="0" name="VK_KHR_EXTENSION_212_SPEC_VERSION"/> + <enum value=""VK_KHR_extension_212"" name="VK_KHR_EXTENSION_212_EXTENSION_NAME"/> + </require> + </extension> </extensions> </registry> |