From c73a696397d0c6f61716e08ba485b2803dcb9259 Mon Sep 17 00:00:00 2001 From: Daniel Rakos Date: Sat, 7 Dec 2024 11:08:03 +0100 Subject: [PATCH] layer: Initialize PhysicalDeviceData members --- scripts/gen_profiles_layer.py | 38 +++++++++++++++++------------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/scripts/gen_profiles_layer.py b/scripts/gen_profiles_layer.py index 58ef2bbf..6cfa3bea 100644 --- a/scripts/gen_profiles_layer.py +++ b/scripts/gen_profiles_layer.py @@ -196,22 +196,22 @@ class PhysicalDeviceData { VkInstance instance() const { return instance_; } - MapOfVkExtensionProperties device_extensions_; - MapOfVkFormatProperties device_formats_; - MapOfVkFormatProperties3 device_formats_3_; - ArrayOfVkQueueFamilyProperties device_queue_family_properties_; - SetOfVideoProfiles set_of_device_video_profiles_; - MapOfVkExtensionProperties simulation_extensions_; - VkPhysicalDeviceProperties physical_device_properties_; - VkPhysicalDeviceFeatures physical_device_features_; - VkPhysicalDeviceMemoryProperties physical_device_memory_properties_; - VkPhysicalDeviceToolProperties physical_device_tool_properties_; - VkSurfaceCapabilitiesKHR surface_capabilities_; - MapOfVkFormatProperties map_of_format_properties_; - MapOfVkFormatProperties3 map_of_format_properties_3_; - MapOfVkExtensionProperties map_of_extension_properties_; - ArrayOfVkQueueFamilyProperties arrayof_queue_family_properties_; - SetOfVideoProfiles set_of_video_profiles_; + MapOfVkExtensionProperties device_extensions_{}; + MapOfVkFormatProperties device_formats_{}; + MapOfVkFormatProperties3 device_formats_3_{}; + ArrayOfVkQueueFamilyProperties device_queue_family_properties_{}; + SetOfVideoProfiles set_of_device_video_profiles_{}; + MapOfVkExtensionProperties simulation_extensions_{}; + VkPhysicalDeviceProperties physical_device_properties_{}; + VkPhysicalDeviceFeatures physical_device_features_{}; + VkPhysicalDeviceMemoryProperties physical_device_memory_properties_{}; + VkPhysicalDeviceToolProperties physical_device_tool_properties_{}; + VkSurfaceCapabilitiesKHR surface_capabilities_{}; + MapOfVkFormatProperties map_of_format_properties_{}; + MapOfVkFormatProperties3 map_of_format_properties_3_{}; + MapOfVkExtensionProperties map_of_extension_properties_{}; + ArrayOfVkQueueFamilyProperties arrayof_queue_family_properties_{}; + SetOfVideoProfiles set_of_video_profiles_{}; bool vulkan_1_1_properties_written_; bool vulkan_1_2_properties_written_; @@ -4831,9 +4831,9 @@ def generate_video_profile_data(self): gen += self.generate_video_profile_caps() gen += self.generate_video_profile_format() gen += '\nstruct VideoProfileData {\n' - gen += ' VideoProfileInfoChain info;\n' - gen += ' VideoCapabilitiesChain caps;\n' - gen += ' std::unordered_map formats;\n\n' + gen += ' VideoProfileInfoChain info{};\n' + gen += ' VideoCapabilitiesChain caps{};\n' + gen += ' std::unordered_map formats{};\n\n' gen += ' std::vector GetSupportedFormatCategories() const {\n' gen += ' std::vector result{};\n' gen += ' switch (info.video_profile_info_.videoCodecOperation) {\n'