Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layer: Initialize PhysicalDeviceData members #729

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
38 changes: 19 additions & 19 deletions scripts/gen_profiles_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down Expand Up @@ -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<VkImageUsageFlags, SetOfVideoProfileFormats> formats;\n\n'
gen += ' VideoProfileInfoChain info{};\n'
gen += ' VideoCapabilitiesChain caps{};\n'
gen += ' std::unordered_map<VkImageUsageFlags, SetOfVideoProfileFormats> formats{};\n\n'
gen += ' std::vector<VkImageUsageFlags> GetSupportedFormatCategories() const {\n'
gen += ' std::vector<VkImageUsageFlags> result{};\n'
gen += ' switch (info.video_profile_info_.videoCodecOperation) {\n'
Expand Down
Loading