vulkan.h: Remove vkGetFormatInfo, add features/limits (#12827, v125)
NOTES:
1/ Some layers impact from vkGetFormatInfo ->
vkGetPhysicalDeviceFormatInfo; some checks are currently disabled in
ParamChecker pending discussion on the best way to do this. Similar
checks in Image layer implemented via additional layer_data member
to link back from VkDevice -> VkPhysicalDevice.
2/ VkPhysicalDeviceFeatures, VkPhysicalDeviceLimits members all zero
for now; also some further churn to be done to the contents of these
structures.
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
diff --git a/demos/tri.c b/demos/tri.c
index f36c90e..f9233c9 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -620,16 +620,13 @@
{
const VkFormat tex_format = VK_FORMAT_B8G8R8A8_UNORM;
VkFormatProperties props;
- size_t size = sizeof(props);
const uint32_t tex_colors[DEMO_TEXTURE_COUNT][2] = {
{ 0xffff0000, 0xff00ff00 },
};
VkResult U_ASSERT_ONLY err;
uint32_t i;
- err = vkGetFormatInfo(demo->device, tex_format,
- VK_FORMAT_INFO_TYPE_PROPERTIES,
- &size, &props);
+ err = vkGetPhysicalDeviceFormatInfo(demo->gpu, tex_format, &props);
assert(!err);
for (i = 0; i < DEMO_TEXTURE_COUNT; i++) {