vulkan.h: V108 -- Static Types, Bug# 13919
diff --git a/tests/vkrenderframework.cpp b/tests/vkrenderframework.cpp
index 7c3fa4a..70c87b0 100644
--- a/tests/vkrenderframework.cpp
+++ b/tests/vkrenderframework.cpp
@@ -81,19 +81,17 @@
std::vector<VkExtensionProperties> instance_extensions;
std::vector<VkExtensionProperties> device_extensions;
uint32_t extCount = 0;
- size_t extSize = sizeof(extCount);
VkResult U_ASSERT_ONLY err;
- err = vkGetGlobalExtensionInfo(VK_EXTENSION_INFO_TYPE_COUNT, 0, &extSize, &extCount);
+ err = vkGetGlobalExtensionCount(&extCount);
assert(!err);
VkExtensionProperties extProp;
- extSize = sizeof(VkExtensionProperties);
bool32_t extFound;
for (uint32_t i = 0; i < instance_extension_names.size(); i++) {
extFound = 0;
for (uint32_t j = 0; j < extCount; j++) {
- err = vkGetGlobalExtensionInfo(VK_EXTENSION_INFO_TYPE_PROPERTIES, j, &extSize, &extProp);
+ err = vkGetGlobalExtensionProperties(j, &extProp);
assert(!err);
if (!strcmp(instance_extension_names[i], extProp.name)) {
instance_extensions.push_back(extProp);
@@ -133,15 +131,13 @@
}
}
- extSize = sizeof(extCount);
- err = vkGetPhysicalDeviceExtensionInfo(objs[0], VK_EXTENSION_INFO_TYPE_COUNT, 0, &extSize, &extCount);
+ err = vkGetPhysicalDeviceExtensionCount(objs[0], &extCount);
assert(!err);
- extSize = sizeof(VkExtensionProperties);
for (uint32_t i = 0; i < device_extension_names.size(); i++) {
extFound = 0;
for (uint32_t j = 0; j < extCount; j++) {
- err = vkGetPhysicalDeviceExtensionInfo(objs[0], VK_EXTENSION_INFO_TYPE_PROPERTIES, j, &extSize, &extProp);
+ err = vkGetPhysicalDeviceExtensionProperties(objs[0], j, &extProp);
assert(!err);
if (!strcmp(device_extension_names[i], extProp.name)) {
device_extensions.push_back(extProp);