diff options
| author | Ian Elliott <ianelliott@google.com> | 2015-12-29 16:45:49 -0700 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2016-01-06 12:23:09 -0700 |
| commit | 750ab6a9ec615adf7609ffce2425d08ac644973c (patch) | |
| tree | 0ee6c8cf40f58d85c0c0ed0c9f1f8232554c3337 /layers/swapchain.cpp | |
| parent | 554dfdc209914631d37ed20abccf610c525d702d (diff) | |
| download | usermoji-750ab6a9ec615adf7609ffce2425d08ac644973c.tar.xz | |
Swapchain: Rename deviceSwapchainExtensionEnabled->swapchainExtensionEnabled
Diffstat (limited to 'layers/swapchain.cpp')
| -rw-r--r-- | layers/swapchain.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp index 5d4dfda0..33d7a69f 100644 --- a/layers/swapchain.cpp +++ b/layers/swapchain.cpp @@ -130,7 +130,7 @@ static void createDeviceRegisterExtensions(VkPhysicalDevice physicalDevice, cons "vkCreateDevice() called with a non-valid VkPhysicalDevice."); } my_device_data->deviceMap[device].device = device; - my_device_data->deviceMap[device].deviceSwapchainExtensionEnabled = false; + my_device_data->deviceMap[device].swapchainExtensionEnabled = false; // Record whether the WSI device extension was enabled for this VkDevice. // No need to check if the extension was advertised by @@ -138,7 +138,7 @@ static void createDeviceRegisterExtensions(VkPhysicalDevice physicalDevice, cons for (i = 0; i < pCreateInfo->enabledExtensionNameCount; i++) { if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_SWAPCHAIN_EXTENSION_NAME) == 0) { - my_device_data->deviceMap[device].deviceSwapchainExtensionEnabled = true; + my_device_data->deviceMap[device].swapchainExtensionEnabled = true; } } } @@ -933,7 +933,7 @@ static VkBool32 validateCreateSwapchainKHR(VkDevice device, const VkSwapchainCre "%s() called with a non-valid %s.", fn, "VkDevice"); - } else if (!pDevice->deviceSwapchainExtensionEnabled) { + } else if (!pDevice->swapchainExtensionEnabled) { return LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice", SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, "%s() called even though the %s extension was not enabled for this VkDevice.", @@ -1213,7 +1213,7 @@ VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL vkDestroySwapchainKHR( skipCall |= LOG_ERROR_NON_VALID_OBJ(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice"); - } else if (!pDevice->deviceSwapchainExtensionEnabled) { + } else if (!pDevice->swapchainExtensionEnabled) { skipCall |= LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice", SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, "%s() called even though the %s extension was not enabled for this VkDevice.", @@ -1263,7 +1263,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainImagesKHR(VkDevice skipCall |= LOG_ERROR_NON_VALID_OBJ(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice"); - } else if (!pDevice->deviceSwapchainExtensionEnabled) { + } else if (!pDevice->swapchainExtensionEnabled) { skipCall |= LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice", SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, "%s() called even though the %s extension was not enabled for this VkDevice.", @@ -1323,7 +1323,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImageKHR( skipCall |= LOG_ERROR_NON_VALID_OBJ(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice"); - } else if (!pDevice->deviceSwapchainExtensionEnabled) { + } else if (!pDevice->swapchainExtensionEnabled) { skipCall |= LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice", SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, "%s() called even though the %s extension was not enabled for this VkDevice.", @@ -1398,7 +1398,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkQueuePresentKHR( SwpSwapchain *pSwapchain = &my_data->swapchainMap[pPresentInfo->pSwapchains[i]]; if (pSwapchain) { - if (!pSwapchain->pDevice->deviceSwapchainExtensionEnabled) { + if (!pSwapchain->pDevice->swapchainExtensionEnabled) { skipCall |= LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, pSwapchain->pDevice, "VkDevice", SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, @@ -1551,7 +1551,7 @@ VK_LAYER_EXPORT VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetDeviceProcAddr(VkD my_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map); VkLayerDispatchTable *pDisp = my_data->device_dispatch_table; if (my_data->deviceMap.size() != 0 && - my_data->deviceMap[device].deviceSwapchainExtensionEnabled) + my_data->deviceMap[device].swapchainExtensionEnabled) { if (!strcmp("vkCreateSwapchainKHR", funcName)) return reinterpret_cast<PFN_vkVoidFunction>(vkCreateSwapchainKHR); |
