Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
38 changes: 38 additions & 0 deletions include/vulkan/utility/vk_safe_struct.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11394,6 +11394,44 @@ struct safe_VkSharedPresentSurfaceCapabilities2KHR {
return reinterpret_cast<VkSharedPresentSurfaceCapabilities2KHR const*>(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<VkPhysicalDeviceMaintenance12FeaturesKHR*>(this); }
VkPhysicalDeviceMaintenance12FeaturesKHR const* ptr() const {
return reinterpret_cast<VkPhysicalDeviceMaintenance12FeaturesKHR const*>(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<VkPhysicalDeviceMaintenance12PropertiesKHR*>(this);
}
VkPhysicalDeviceMaintenance12PropertiesKHR const* ptr() const {
return reinterpret_cast<VkPhysicalDeviceMaintenance12PropertiesKHR const*>(this);
}
};
struct safe_VkDebugReportCallbackCreateInfoEXT {
VkStructureType sType;
const void* pNext{};
Expand Down
2 changes: 2 additions & 0 deletions include/vulkan/utility/vk_struct_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ template <> inline VkStructureType GetSType<VkImageViewUsage2CreateInfoKHR>() {
template <> inline VkStructureType GetSType<VkPhysicalDeviceExtendedFlagsFeaturesKHR>() { return VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_FLAGS_FEATURES_KHR; }
template <> inline VkStructureType GetSType<VkImageStencilUsage2CreateInfoKHR>() { return VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_2_CREATE_INFO_KHR; }
template <> inline VkStructureType GetSType<VkSharedPresentSurfaceCapabilities2KHR>() { return VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_2_KHR; }
template <> inline VkStructureType GetSType<VkPhysicalDeviceMaintenance12FeaturesKHR>() { return VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_FEATURES_KHR; }
template <> inline VkStructureType GetSType<VkPhysicalDeviceMaintenance12PropertiesKHR>() { return VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_PROPERTIES_KHR; }
template <> inline VkStructureType GetSType<VkDebugReportCallbackCreateInfoEXT>() { return VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT; }
template <> inline VkStructureType GetSType<VkPipelineRasterizationStateRasterizationOrderAMD>() { return VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD; }
template <> inline VkStructureType GetSType<VkDebugMarkerObjectNameInfoEXT>() { return VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT; }
Expand Down
10 changes: 10 additions & 0 deletions include/vulkan/vk_enum_string_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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";
}
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion scripts/known_good.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
96 changes: 96 additions & 0 deletions src/vulkan/vk_safe_struct_khr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 (&copy_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 (&copy_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);
Expand Down
12 changes: 12 additions & 0 deletions src/vulkan/vk_safe_struct_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const VkSharedPresentSurfaceCapabilities2KHR *>(pNext), copy_state, false);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_FEATURES_KHR:
safe_pNext = new safe_VkPhysicalDeviceMaintenance12FeaturesKHR(reinterpret_cast<const VkPhysicalDeviceMaintenance12FeaturesKHR *>(pNext), copy_state, false);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_PROPERTIES_KHR:
safe_pNext = new safe_VkPhysicalDeviceMaintenance12PropertiesKHR(reinterpret_cast<const VkPhysicalDeviceMaintenance12PropertiesKHR *>(pNext), copy_state, false);
break;
case VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT:
safe_pNext = new safe_VkDebugReportCallbackCreateInfoEXT(reinterpret_cast<const VkDebugReportCallbackCreateInfoEXT *>(pNext), copy_state, false);
break;
Expand Down Expand Up @@ -3681,6 +3687,12 @@ void FreePnextChain(const void *pNext) {
case VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_2_KHR:
delete reinterpret_cast<safe_VkSharedPresentSurfaceCapabilities2KHR *>(header);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_FEATURES_KHR:
delete reinterpret_cast<safe_VkPhysicalDeviceMaintenance12FeaturesKHR *>(header);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_12_PROPERTIES_KHR:
delete reinterpret_cast<safe_VkPhysicalDeviceMaintenance12PropertiesKHR *>(header);
break;
case VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT:
delete reinterpret_cast<safe_VkDebugReportCallbackCreateInfoEXT *>(header);
break;
Expand Down
Loading