aboutsummaryrefslogtreecommitdiff
path: root/layers/image.cpp
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2015-10-27 19:55:05 +0800
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-11-02 15:04:09 -0700
commita014143f876c5ac5c5c7a1cea56f7cacaf3a5cb7 (patch)
tree217fdabc95a40eb0f317a61edb5c88f952549863 /layers/image.cpp
parent1957462626e129223f66949634f4f4a707ec4401 (diff)
downloadusermoji-a014143f876c5ac5c5c7a1cea56f7cacaf3a5cb7.tar.xz
bug 15000: aspect/aspectMask inconsistencies (WIP)
Rename all aspect to aspectMask. https://cvs.khronos.org/bugzilla/show_bug.cgi?id=15000
Diffstat (limited to 'layers/image.cpp')
-rw-r--r--layers/image.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/layers/image.cpp b/layers/image.cpp
index 5420d4fa..c84fa9c1 100644
--- a/layers/image.cpp
+++ b/layers/image.cpp
@@ -911,17 +911,17 @@ VK_LAYER_EXPORT void VKAPI vkGetImageSubresourceLayout(
if (imageEntry != device_data->imageMap.end()) {
format = imageEntry->second.format;
if (vk_format_is_color(format)) {
- if (pSubresource->aspect != VK_IMAGE_ASPECT_COLOR_BIT) {
+ if (pSubresource->aspectMask != VK_IMAGE_ASPECT_COLOR_BIT) {
std::stringstream ss;
- ss << "vkGetImageSubresourceLayout: For color formats, the aspect field of VkImageSubresource must be VK_IMAGE_ASPECT_COLOR.";
+ ss << "vkGetImageSubresourceLayout: For color formats, the aspectMask field of VkImageSubresource must be VK_IMAGE_ASPECT_COLOR.";
skipCall |= log_msg(device_data->report_data, VK_DBG_REPORT_ERROR_BIT, VK_OBJECT_TYPE_IMAGE,
(uint64_t)image, 0, IMAGE_INVALID_IMAGE_ASPECT, "IMAGE", ss.str().c_str());
}
} else if (vk_format_is_depth_or_stencil(format)) {
- if ((pSubresource->aspect != VK_IMAGE_ASPECT_DEPTH_BIT) &&
- (pSubresource->aspect != VK_IMAGE_ASPECT_STENCIL_BIT)) {
+ if ((pSubresource->aspectMask != VK_IMAGE_ASPECT_DEPTH_BIT) &&
+ (pSubresource->aspectMask != VK_IMAGE_ASPECT_STENCIL_BIT)) {
std::stringstream ss;
- ss << "vkGetImageSubresourceLayout: For depth/stencil formats, the aspect selects either the depth or stencil image aspect.";
+ ss << "vkGetImageSubresourceLayout: For depth/stencil formats, the aspectMask selects either the depth or stencil image aspectMask.";
skipCall |= log_msg(device_data->report_data, VK_DBG_REPORT_ERROR_BIT, VK_OBJECT_TYPE_IMAGE,
(uint64_t)image, 0, IMAGE_INVALID_IMAGE_ASPECT, "IMAGE", ss.str().c_str());
}