Vulkan-Utility-Libraries/scripts/generators
Charles Giessen 0d5b49b80f formats: vkuGetFormatInfo to use array
Puts the contents of a switch in a big array, then rewrites
vkuGetFormatInfo() to index into it based on the formats enum value.

This was done because the switch statement was large enough that
compilers wouldn't inline the function, leading to performance bubbles.

The logic for generating the logic of vkuGetFormatInfo is complex but
boils down to finding the groups of consecutive VkFormats, where the
end of a group has a value that is more than 1 away from the next format
value.

To follow C const initializer rules, VKU_FORMAT_COMPRESSED_COMPONENT
had to be turned into a macro.
2025-03-26 08:00:39 -06:00
..
dispatch_table_generator.py scripts: Use new VulkanObject from headers 2025-02-21 15:01:59 -05:00
enum_string_helper_generator.py scripts: Use new VulkanObject from headers 2025-02-21 15:01:59 -05:00
format_utils_generator.py formats: vkuGetFormatInfo to use array 2025-03-26 08:00:39 -06:00
generator_utils.py Move vk_safe_struct to VUL 2024-03-28 11:11:35 -06:00
safe_struct_generator.py scripts: Manual VK_ENABLE_BETA_EXTENSIONS 2025-02-22 06:19:00 -07:00
struct_helper_generator.py scripts: Remove Protect workaround 2025-03-07 17:34:40 -05:00