mirror of
https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git
synced 2025-05-15 01:08:39 +00:00
![]() 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. |
||
---|---|---|
.. | ||
generators | ||
gn | ||
CMakeLists.txt | ||
common_ci.py | ||
generate_source.py | ||
known_good.json | ||
update_deps.py |