From 4023b5c7e92ebdfe5c16d7fe92af0dc2342f35e8 Mon Sep 17 00:00:00 2001 From: spencer-lunarg Date: Sun, 11 May 2025 02:03:07 -0400 Subject: [PATCH] Add missing VkPhysicalDeviceVulkan14Properties array size --- scripts/gen_profiles_layer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/gen_profiles_layer.py b/scripts/gen_profiles_layer.py index ff43b96f..c2b4cc1a 100644 --- a/scripts/gen_profiles_layer.py +++ b/scripts/gen_profiles_layer.py @@ -1765,7 +1765,7 @@ class JsonLoader { for (const auto usage : video_profile.GetSupportedFormatCategories()) { std::vector formats{}; SetOfVideoProfileFormats device_formats{}; - + // The initial set of formats is taken from the physical device supported ones, if there are any, // and they match any of the profile defined ones if (pd_video_profile != pdd_->set_of_device_video_profiles_.end()) { @@ -1981,7 +1981,7 @@ class JsonLoader { this->LoadFile(path); continue; } - + for (const auto& entry : fs::directory_iterator(path)) { if (fs::is_directory(entry.path())) { continue; @@ -4988,7 +4988,7 @@ def generate_get_struct(self, struct, extends, additional): gen += ' return GetStruct(device_name, requested_profile, ' + struct + ', &pdd_->physical_device_properties_.limits);\n' elif current == 'VkPhysicalDeviceSparseProperties': gen += ' return GetStruct(device_name, requested_profile, ' + struct + ', &pdd_->physical_device_properties_.sparseProperties);\n' - elif current.startswith('VkPhysicalDeviceHostImageCopyProperties'): + elif current.startswith('VkPhysicalDeviceHostImageCopyProperties') or current == 'VkPhysicalDeviceVulkan14Properties': # Initialize memory for src/dst layout arrays with a size that's way too big to be exceeded. gen += ' pdd_->pCopySrcLayouts_.resize(64);\n' gen += ' pdd_->pCopyDstLayouts_.resize(64);\n'