device->ws->destroy(device->ws);
}
-static const VkExtensionProperties global_extensions[] = {
+static const VkExtensionProperties instance_extensions[] = {
{
.extensionName = VK_KHR_SURFACE_EXTENSION_NAME,
.specVersion = 25,
#endif
};
-static const VkExtensionProperties device_extensions[] = {
+static const VkExtensionProperties common_device_extensions[] = {
{
.extensionName = VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME,
.specVersion = 1,
for (uint32_t i = 0; i < pCreateInfo->enabledExtensionCount; i++) {
bool found = false;
- for (uint32_t j = 0; j < ARRAY_SIZE(global_extensions); j++) {
+ for (uint32_t j = 0; j < ARRAY_SIZE(instance_extensions); j++) {
if (strcmp(pCreateInfo->ppEnabledExtensionNames[i],
- global_extensions[j].extensionName) == 0) {
+ instance_extensions[j].extensionName) == 0) {
found = true;
break;
}
for (uint32_t i = 0; i < pCreateInfo->enabledExtensionCount; i++) {
bool found = false;
- for (uint32_t j = 0; j < ARRAY_SIZE(device_extensions); j++) {
+ for (uint32_t j = 0; j < ARRAY_SIZE(common_device_extensions); j++) {
if (strcmp(pCreateInfo->ppEnabledExtensionNames[i],
- device_extensions[j].extensionName) == 0) {
+ common_device_extensions[j].extensionName) == 0) {
found = true;
break;
}
VkExtensionProperties* pProperties)
{
if (pProperties == NULL) {
- *pPropertyCount = ARRAY_SIZE(global_extensions);
+ *pPropertyCount = ARRAY_SIZE(instance_extensions);
return VK_SUCCESS;
}
- *pPropertyCount = MIN2(*pPropertyCount, ARRAY_SIZE(global_extensions));
- typed_memcpy(pProperties, global_extensions, *pPropertyCount);
+ *pPropertyCount = MIN2(*pPropertyCount, ARRAY_SIZE(instance_extensions));
+ typed_memcpy(pProperties, instance_extensions, *pPropertyCount);
- if (*pPropertyCount < ARRAY_SIZE(global_extensions))
+ if (*pPropertyCount < ARRAY_SIZE(instance_extensions))
return VK_INCOMPLETE;
return VK_SUCCESS;
VkExtensionProperties* pProperties)
{
if (pProperties == NULL) {
- *pPropertyCount = ARRAY_SIZE(device_extensions);
+ *pPropertyCount = ARRAY_SIZE(common_device_extensions);
return VK_SUCCESS;
}
- *pPropertyCount = MIN2(*pPropertyCount, ARRAY_SIZE(device_extensions));
- typed_memcpy(pProperties, device_extensions, *pPropertyCount);
+ *pPropertyCount = MIN2(*pPropertyCount, ARRAY_SIZE(common_device_extensions));
+ typed_memcpy(pProperties, common_device_extensions, *pPropertyCount);
- if (*pPropertyCount < ARRAY_SIZE(device_extensions))
+ if (*pPropertyCount < ARRAY_SIZE(common_device_extensions))
return VK_INCOMPLETE;
return VK_SUCCESS;