CodeGen(vk_parser): Refine vk.xml parsing and vk.py generation for vkjson
Updates vk_parser.py for more precise vk.xml parsing and improved vk.py output. The generated vk.py serves as an intermediate for vkjson_generator.py, aiding generation of vkjsons. Key changes: - Integrated new structs and extensions into vkjson. - Updated naming logic in vkjson_generator.py for consistency. - Extended vkjson_generator to handle new vkjson structures and extensions comprehensively. - Added detailed comments to vk.py explaining the generation filters for key mappings, improving clarity. - Improved the output formatting and overall structure of vk.py for better readability. - Applied generation filters in vk.py to include `VkPhysicalDevice`-prefixed structs (specifically those extending `Properties2` or `Features2` for mapping generation, along with their dependencies) and extensions marked as 'supported' (or without a platform specification, or targeting 'android'). -Added code generation for fetching VKFormat from extensions and vulkan versions tags in vk.xml - Added 'VK_USE_PLATFORM_ANDROID_KHR' to vkjson.h for new structures defined in 'vulkan_android.h' header file (like VkPhysicalDeviceExternalFormatResolveFeaturesANDROID). TODO: - b/415704124 [CodeGen] Pending Codegen Improvements BYPASS_LARGE_CHANGE_WARNING Test: adb shell cmd gpu vkjson Flag: NONE infeasible Bug: b/401184058 Change-Id: I0692e601a51fa8eaa04a30afcc3330bedeb1a833
Loading
Please register or sign in to comment