Update VkStringify to use vulkan.hpp to_string
Rather than occasionally updating VkStringify's table to match
vulkan_core.h, we can use vulkan.hpp's to_string functions to get us the
name of structure types.
vulkan.hpp is such a burdensome file that it makes more sense to only
include it in VkStringify.cpp instead of including it everywhere that
looks at a structure extension list. And since vulkan.hpp uses its own
equivalent equivalent types for every Vk* object, every place that calls
vkhpp::to_string would have to do some clunky static_cast.
I think in the long run, it's easier to maintain vulkan.hpp if we don't
use it directly in our core files.
Bug: b/170962162
Change-Id: Ib0380eaba4d05d9d5127fb0569efa6ef88d0156b
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/49368
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Tested-by:
Sean Risser <srisser@google.com>
Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
Showing
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment