diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-10-16 09:46:00 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-10-23 17:32:04 -0600 |
| commit | eae391ef15d8d0d5d1043e5471fc3fccc348ad3a (patch) | |
| tree | 0df8c57fb5984a6fa58fdcce3d76d5d3b27520c2 /layers/image.cpp | |
| parent | dff021fa4c6027db3d8e9cc1d2322d121f273fc3 (diff) | |
| download | usermoji-eae391ef15d8d0d5d1043e5471fc3fccc348ad3a.tar.xz | |
bug-14786: Addressing layered subresources in vkCmdCopyImage
commit: ad27e2b Attempt at naming consistency
Diffstat (limited to 'layers/image.cpp')
| -rw-r--r-- | layers/image.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/image.cpp b/layers/image.cpp index e40536af..a49ded8e 100644 --- a/layers/image.cpp +++ b/layers/image.cpp @@ -400,12 +400,12 @@ VK_LAYER_EXPORT VkResult VKAPI vkCreateImageView(VkDevice device, const VkImageV ss << "vkCreateImageView called with baseArrayLayer " << pCreateInfo->subresourceRange.baseArrayLayer << " for image " << pCreateInfo->image.handle << " that only has " << imageEntry->second->arraySize << " mip levels."; skipCall |= log_msg(device_data->report_data, VK_DBG_REPORT_ERROR_BIT, (VkDbgObjectType)0, 0, 0, IMAGE_VIEW_CREATE_ERROR, "IMAGE", ss.str().c_str()); } - if (!pCreateInfo->subresourceRange.mipLevels) { + if (!pCreateInfo->subresourceRange.numLevels) { std::stringstream ss; ss << "vkCreateImageView called with 0 in pCreateInfo->subresourceRange.mipLevels."; skipCall |= log_msg(device_data->report_data, VK_DBG_REPORT_ERROR_BIT, (VkDbgObjectType)0, 0, 0, IMAGE_VIEW_CREATE_ERROR, "IMAGE", ss.str().c_str()); } - if (!pCreateInfo->subresourceRange.arraySize) { + if (!pCreateInfo->subresourceRange.numLayers) { std::stringstream ss; ss << "vkCreateImageView called with 0 in pCreateInfo->subresourceRange.arraySize."; skipCall |= log_msg(device_data->report_data, VK_DBG_REPORT_ERROR_BIT, (VkDbgObjectType)0, 0, 0, IMAGE_VIEW_CREATE_ERROR, "IMAGE", ss.str().c_str()); |
