From 83d6120787f1db0fb43bad19f63e55757af191a5 Mon Sep 17 00:00:00 2001 From: "headerbot[bot]" Date: Fri, 30 Oct 2026 02:16:59 +0000 Subject: [PATCH] build: Update to header 1.4.367 --- CMakeLists.txt | 2 +- include/vulkan/utility/vk_safe_struct.hpp | 38 ++++++++ include/vulkan/utility/vk_struct_helper.hpp | 2 + include/vulkan/vk_enum_string_helper.h | 10 +++ scripts/known_good.json | 2 +- src/vulkan/vk_safe_struct_khr.cpp | 96 +++++++++++++++++++++ src/vulkan/vk_safe_struct_utils.cpp | 12 +++ 7 files changed, 160 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 94b7603..5fd39e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.22.1) # The VERSION field is generated with the "--generated-version" flag in the generate_source.py script -project(VUL VERSION 1.4.366 LANGUAGES CXX) +project(VUL VERSION 1.4.367 LANGUAGES CXX) set_property(GLOBAL PROPERTY USE_FOLDERS ON) # Remove when min is 3.26, see CMP0143 diff --git a/include/vulkan/utility/vk_safe_struct.hpp b/include/vulkan/utility/vk_safe_struct.hpp index e45d51f..c0517f1 100644 --- a/include/vulkan/utility/vk_safe_struct.hpp +++ b/include/vulkan/utility/vk_safe_struct.hpp @@ -11394,6 +11394,44 @@ struct safe_VkSharedPresentSurfaceCapabilities2KHR { return reinterpret_cast(this); } }; +struct safe_VkPhysicalDeviceMaintenance12FeaturesKHR { + VkStructureType sType; + void* pNext{}; + VkBool32 maintenance12; + + safe_VkPhysicalDeviceMaintenance12FeaturesKHR(const VkPhysicalDeviceMaintenance12FeaturesKHR* in_struct, + PNextCopyState* copy_state = {}, bool copy_pnext = true); + safe_VkPhysicalDeviceMaintenance12FeaturesKHR(const safe_VkPhysicalDeviceMaintenance12FeaturesKHR& copy_src); + safe_VkPhysicalDeviceMaintenance12FeaturesKHR& operator=(const safe_VkPhysicalDeviceMaintenance12FeaturesKHR& copy_src); + safe_VkPhysicalDeviceMaintenance12FeaturesKHR(); + ~safe_VkPhysicalDeviceMaintenance12FeaturesKHR(); + void initialize(const VkPhysicalDeviceMaintenance12FeaturesKHR* in_struct, PNextCopyState* copy_state = {}); + void initialize(const safe_VkPhysicalDeviceMaintenance12FeaturesKHR* copy_src, PNextCopyState* copy_state = {}); + VkPhysicalDeviceMaintenance12FeaturesKHR* ptr() { return reinterpret_cast(this); } + VkPhysicalDeviceMaintenance12FeaturesKHR const* ptr() const { + return reinterpret_cast(this); + } +}; +struct safe_VkPhysicalDeviceMaintenance12PropertiesKHR { + VkStructureType sType; + void* pNext{}; + uint32_t maxInputAttachmentIndex; + + safe_VkPhysicalDeviceMaintenance12PropertiesKHR(const VkPhysicalDeviceMaintenance12PropertiesKHR* in_struct, + PNextCopyState* copy_state = {}, bool copy_pnext = true); + safe_VkPhysicalDeviceMaintenance12PropertiesKHR(const safe_VkPhysicalDeviceMaintenance12PropertiesKHR& copy_src); + safe_VkPhysicalDeviceMaintenance12PropertiesKHR& operator=(const safe_VkPhysicalDeviceMaintenance12PropertiesKHR& copy_src); + safe_VkPhysicalDeviceMaintenance12PropertiesKHR(); + ~safe_VkPhysicalDeviceMaintenance12PropertiesKHR(); + void initialize(const VkPhysicalDeviceMaintenance12PropertiesKHR* in_struct, PNextCopyState* copy_state = {}); + void initialize(const safe_VkPhysicalDeviceMaintenance12PropertiesKHR* copy_src, PNextCopyState* copy_state = {}); + VkPhysicalDeviceMaintenance12PropertiesKHR* ptr() { + return reinterpret_cast(this); + } + VkPhysicalDeviceMaintenance12PropertiesKHR const* ptr() const { + return reinterpret_cast(this); + } +}; struct safe_VkDebugReportCallbackCreateInfoEXT { VkStructureType sType; const void* pNext{}; diff --git a/include/vulkan/utility/vk_struct_helper.hpp b/include/vulkan/utility/vk_struct_helper.hpp index 8d2d49b..99a185f 100644 --- a/include/vulkan/utility/vk_struct_helper.hpp +++ b/include/vulkan/utility/vk_struct_helper.hpp @@ -596,6 +596,8 @@ template <> inline VkStructureType GetSType() { template <> inline VkStructureType GetSType() { return VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_FLAGS_FEATURES_KHR; } template <> inline VkStructureType GetSType() { return VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_2_CREATE_INFO_KHR; } template <> inline VkStructureType GetSType() { return VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_2_KHR; } +template <> inline VkStructureType GetSType() { return VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_FEATURES_KHR; } +template <> inline VkStructureType GetSType() { return VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_PROPERTIES_KHR; } template <> inline VkStructureType GetSType() { return VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT; } template <> inline VkStructureType GetSType() { return VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD; } template <> inline VkStructureType GetSType() { return VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT; } diff --git a/include/vulkan/vk_enum_string_helper.h b/include/vulkan/vk_enum_string_helper.h index 03e276c..8dda0aa 100644 --- a/include/vulkan/vk_enum_string_helper.h +++ b/include/vulkan/vk_enum_string_helper.h @@ -2638,6 +2638,10 @@ static inline const char* string_VkStructureType(VkStructureType input_value) { return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DATA_GRAPH_NEURAL_ACCELERATOR_STATISTICS_FEATURES_ARM"; case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_RESTART_INDEX_FEATURES_EXT: return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_RESTART_INDEX_FEATURES_EXT"; + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_FEATURES_KHR: + return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_FEATURES_KHR"; + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_PROPERTIES_KHR: + return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_PROPERTIES_KHR"; case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_TILING_CONTROL_FEATURES_EXT: return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_TILING_CONTROL_FEATURES_EXT"; case VK_STRUCTURE_TYPE_IMAGE_TILING_CONTROL_CREATE_INFO_EXT: @@ -4426,6 +4430,8 @@ static inline const char* string_VkDriverId(VkDriverId input_value) { return "VK_DRIVER_ID_NIKKI"; case VK_DRIVER_ID_MOMOTEN: return "VK_DRIVER_ID_MOMOTEN"; + case VK_DRIVER_ID_AURORA_BOREALIS: + return "VK_DRIVER_ID_AURORA_BOREALIS"; default: return "Unhandled VkDriverId"; } @@ -13547,6 +13553,10 @@ static inline const char* string_VkStructureName(VkStructureType input_value) { return "VkImageStencilUsage2CreateInfoKHR"; case VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_2_KHR: return "VkSharedPresentSurfaceCapabilities2KHR"; + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_FEATURES_KHR: + return "VkPhysicalDeviceMaintenance12FeaturesKHR"; + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_PROPERTIES_KHR: + return "VkPhysicalDeviceMaintenance12PropertiesKHR"; case VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT: return "VkDebugReportCallbackCreateInfoEXT"; case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD: diff --git a/scripts/known_good.json b/scripts/known_good.json index 1caa0c0..ecd92aa 100644 --- a/scripts/known_good.json +++ b/scripts/known_good.json @@ -7,7 +7,7 @@ "sub_dir": "Vulkan-Headers", "build_dir": "Vulkan-Headers/build", "install_dir": "Vulkan-Headers/build/install", - "commit": "v1.4.366" + "commit": "v1.4.367" }, { "name": "googletest", diff --git a/src/vulkan/vk_safe_struct_khr.cpp b/src/vulkan/vk_safe_struct_khr.cpp index 6888a0b..0b91b06 100644 --- a/src/vulkan/vk_safe_struct_khr.cpp +++ b/src/vulkan/vk_safe_struct_khr.cpp @@ -20263,6 +20263,102 @@ void safe_VkSharedPresentSurfaceCapabilities2KHR::initialize(const safe_VkShared pNext = SafePnextCopy(copy_src->pNext); } +safe_VkPhysicalDeviceMaintenance12FeaturesKHR::safe_VkPhysicalDeviceMaintenance12FeaturesKHR( + const VkPhysicalDeviceMaintenance12FeaturesKHR* in_struct, [[maybe_unused]] PNextCopyState* copy_state, bool copy_pnext) + : sType(in_struct->sType), maintenance12(in_struct->maintenance12) { + if (copy_pnext) { + pNext = SafePnextCopy(in_struct->pNext, copy_state); + } +} + +safe_VkPhysicalDeviceMaintenance12FeaturesKHR::safe_VkPhysicalDeviceMaintenance12FeaturesKHR() + : sType(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_FEATURES_KHR), pNext(nullptr), maintenance12() {} + +safe_VkPhysicalDeviceMaintenance12FeaturesKHR::safe_VkPhysicalDeviceMaintenance12FeaturesKHR( + const safe_VkPhysicalDeviceMaintenance12FeaturesKHR& copy_src) { + sType = copy_src.sType; + maintenance12 = copy_src.maintenance12; + pNext = SafePnextCopy(copy_src.pNext); +} + +safe_VkPhysicalDeviceMaintenance12FeaturesKHR& safe_VkPhysicalDeviceMaintenance12FeaturesKHR::operator=( + const safe_VkPhysicalDeviceMaintenance12FeaturesKHR& copy_src) { + if (©_src == this) return *this; + + FreePnextChain(pNext); + + sType = copy_src.sType; + maintenance12 = copy_src.maintenance12; + pNext = SafePnextCopy(copy_src.pNext); + + return *this; +} + +safe_VkPhysicalDeviceMaintenance12FeaturesKHR::~safe_VkPhysicalDeviceMaintenance12FeaturesKHR() { FreePnextChain(pNext); } + +void safe_VkPhysicalDeviceMaintenance12FeaturesKHR::initialize(const VkPhysicalDeviceMaintenance12FeaturesKHR* in_struct, + [[maybe_unused]] PNextCopyState* copy_state) { + FreePnextChain(pNext); + sType = in_struct->sType; + maintenance12 = in_struct->maintenance12; + pNext = SafePnextCopy(in_struct->pNext, copy_state); +} + +void safe_VkPhysicalDeviceMaintenance12FeaturesKHR::initialize(const safe_VkPhysicalDeviceMaintenance12FeaturesKHR* copy_src, + [[maybe_unused]] PNextCopyState* copy_state) { + sType = copy_src->sType; + maintenance12 = copy_src->maintenance12; + pNext = SafePnextCopy(copy_src->pNext); +} + +safe_VkPhysicalDeviceMaintenance12PropertiesKHR::safe_VkPhysicalDeviceMaintenance12PropertiesKHR( + const VkPhysicalDeviceMaintenance12PropertiesKHR* in_struct, [[maybe_unused]] PNextCopyState* copy_state, bool copy_pnext) + : sType(in_struct->sType), maxInputAttachmentIndex(in_struct->maxInputAttachmentIndex) { + if (copy_pnext) { + pNext = SafePnextCopy(in_struct->pNext, copy_state); + } +} + +safe_VkPhysicalDeviceMaintenance12PropertiesKHR::safe_VkPhysicalDeviceMaintenance12PropertiesKHR() + : sType(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_PROPERTIES_KHR), pNext(nullptr), maxInputAttachmentIndex() {} + +safe_VkPhysicalDeviceMaintenance12PropertiesKHR::safe_VkPhysicalDeviceMaintenance12PropertiesKHR( + const safe_VkPhysicalDeviceMaintenance12PropertiesKHR& copy_src) { + sType = copy_src.sType; + maxInputAttachmentIndex = copy_src.maxInputAttachmentIndex; + pNext = SafePnextCopy(copy_src.pNext); +} + +safe_VkPhysicalDeviceMaintenance12PropertiesKHR& safe_VkPhysicalDeviceMaintenance12PropertiesKHR::operator=( + const safe_VkPhysicalDeviceMaintenance12PropertiesKHR& copy_src) { + if (©_src == this) return *this; + + FreePnextChain(pNext); + + sType = copy_src.sType; + maxInputAttachmentIndex = copy_src.maxInputAttachmentIndex; + pNext = SafePnextCopy(copy_src.pNext); + + return *this; +} + +safe_VkPhysicalDeviceMaintenance12PropertiesKHR::~safe_VkPhysicalDeviceMaintenance12PropertiesKHR() { FreePnextChain(pNext); } + +void safe_VkPhysicalDeviceMaintenance12PropertiesKHR::initialize(const VkPhysicalDeviceMaintenance12PropertiesKHR* in_struct, + [[maybe_unused]] PNextCopyState* copy_state) { + FreePnextChain(pNext); + sType = in_struct->sType; + maxInputAttachmentIndex = in_struct->maxInputAttachmentIndex; + pNext = SafePnextCopy(in_struct->pNext, copy_state); +} + +void safe_VkPhysicalDeviceMaintenance12PropertiesKHR::initialize(const safe_VkPhysicalDeviceMaintenance12PropertiesKHR* copy_src, + [[maybe_unused]] PNextCopyState* copy_state) { + sType = copy_src->sType; + maxInputAttachmentIndex = copy_src->maxInputAttachmentIndex; + pNext = SafePnextCopy(copy_src->pNext); +} + safe_VkDeviceOrHostAddressConstKHR::safe_VkDeviceOrHostAddressConstKHR(const VkDeviceOrHostAddressConstKHR* in_struct, PNextCopyState*) { initialize(in_struct); diff --git a/src/vulkan/vk_safe_struct_utils.cpp b/src/vulkan/vk_safe_struct_utils.cpp index 46c7250..534ba59 100644 --- a/src/vulkan/vk_safe_struct_utils.cpp +++ b/src/vulkan/vk_safe_struct_utils.cpp @@ -1103,6 +1103,12 @@ void *SafePnextCopy(const void *pNext, PNextCopyState* copy_state) { case VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_2_KHR: safe_pNext = new safe_VkSharedPresentSurfaceCapabilities2KHR(reinterpret_cast(pNext), copy_state, false); break; + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_FEATURES_KHR: + safe_pNext = new safe_VkPhysicalDeviceMaintenance12FeaturesKHR(reinterpret_cast(pNext), copy_state, false); + break; + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_PROPERTIES_KHR: + safe_pNext = new safe_VkPhysicalDeviceMaintenance12PropertiesKHR(reinterpret_cast(pNext), copy_state, false); + break; case VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT: safe_pNext = new safe_VkDebugReportCallbackCreateInfoEXT(reinterpret_cast(pNext), copy_state, false); break; @@ -3681,6 +3687,12 @@ void FreePnextChain(const void *pNext) { case VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_2_KHR: delete reinterpret_cast(header); break; + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_FEATURES_KHR: + delete reinterpret_cast(header); + break; + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_PROPERTIES_KHR: + delete reinterpret_cast(header); + break; case VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT: delete reinterpret_cast(header); break;