vk_find_struct: use the requested type to calculate sType
Add the type->id mapping to get Vulkan struct sType at compile time. This will produce a compile time error for unknown types. Bug: 131181334 Test: make Change-Id: Ib3003195d686ba20b3ea16a3215c4e6d07426fb7 Merged-In: I47800f6068cb21eabac935cf5873faee7e5a2854
Showing
- system/vulkan_enc/AndroidHardwareBuffer.cpp 1 addition, 3 deletionssystem/vulkan_enc/AndroidHardwareBuffer.cpp
- system/vulkan_enc/ResourceTracker.cpp 17 additions, 65 deletionssystem/vulkan_enc/ResourceTracker.cpp
- system/vulkan_enc/goldfish_vk_private_defs.h 29 additions, 0 deletionssystem/vulkan_enc/goldfish_vk_private_defs.h
- system/vulkan_enc/vk_struct_id.h 56 additions, 0 deletionssystem/vulkan_enc/vk_struct_id.h
- system/vulkan_enc/vk_util.h 9 additions, 14 deletionssystem/vulkan_enc/vk_util.h
Loading
Please register or sign in to comment