Vulkan-Utility-Libraries/scripts
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
..
generators formats: vkuGetFormatInfo to use array 2025-03-26 08:00:39 -06:00
gn utils: Add custom containers from vvl 2024-04-04 10:13:47 -06:00
CMakeLists.txt Update UPDATE_DEPS 2023-11-10 15:07:18 -07:00
common_ci.py Move vk_safe_struct to VUL 2024-03-28 11:11:35 -06:00
generate_source.py scripts: Use new VulkanObject from headers 2025-02-21 15:01:59 -05:00
known_good.json build: Update to header 1.4.311 2025-03-21 08:52:30 -07:00
update_deps.py scripts: Fix user self-hosting dependency in update_deps.py 2024-10-28 09:25:08 -06:00