aboutsummaryrefslogtreecommitdiff
path: root/layers/image.cpp
diff options
context:
space:
mode:
authorMark Mueller <markm@lunarg.com>2016-05-03 13:17:29 -0600
committerMark Mueller <markm@lunarg.com>2016-05-11 09:00:24 -0600
commitdb6a8d55264aa3eaf2a6ecf14734263fb74c6a80 (patch)
treef2eaec728a4dec617901a07cc30e2b5b7c7e4a48 /layers/image.cpp
parent26ae872195bd882dfb6766608d0a91f7273546fb (diff)
downloadusermoji-db6a8d55264aa3eaf2a6ecf14734263fb74c6a80.tar.xz
layers:LX#470 Fix poor use of hex vs dec output
1) Introduce convention of explicitly placing "0x" before hex format requests for clarity (don't use "%#") 2) All lower case in hex output (except w/stringstream which refuses to do anything but uppercase, possibly only on windows). 3) Decorated pointers are printed for all Vulkan structure types. 3) Some intelligence in generators based on Vulkan variable name: if the Vulkan variable name contains ("flag", "bit", "offset", "handle", "buffer", "object", "mask") it will be output in hexadecimal format 4) Remove "using namespace std;" from global scope of vk_struct_string_helper_cpp.h Change-Id: Idbae73bfdaa3bc059543d43b209373cd0bcbc099
Diffstat (limited to 'layers/image.cpp')
-rw-r--r--layers/image.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/layers/image.cpp b/layers/image.cpp
index 398283be..2fce6500 100644
--- a/layers/image.cpp
+++ b/layers/image.cpp
@@ -48,6 +48,8 @@
#include "vk_layer_utils.h"
#include "vk_layer_logging.h"
+using namespace std;
+
namespace image {
struct layer_data {
@@ -310,7 +312,7 @@ CreateImage(VkDevice device, const VkImageCreateInfo *pCreateInfo, const VkAlloc
skipCall |= log_msg(phy_dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT,
(uint64_t)pImage, __LINE__, IMAGE_INVALID_FORMAT_LIMITS_VIOLATION, "Image",
"CreateImage resource size exceeds allowable maximum "
- "Image resource size = %#" PRIxLEAST64 ", maximum resource size = %#" PRIxLEAST64 " ",
+ "Image resource size = 0x%" PRIxLEAST64 ", maximum resource size = 0x%" PRIxLEAST64 " ",
totalSize, ImageFormatProperties.maxResourceSize);
}