aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Stroyan <mike@LunarG.com>2015-05-27 13:09:15 -0600
committerMike Stroyan <mike@LunarG.com>2015-06-16 15:55:04 -0600
commit3fb5b4ec084b8aef85be613c0788228a284acce0 (patch)
tree161e25b7295ba38b9f78357dc776788e13ca0509
parent8b89e07e473878cd8aacb4e714b538d63f61c2f9 (diff)
downloadusermoji-3fb5b4ec084b8aef85be613c0788228a284acce0.tar.xz
demos: use PRINTF_SIZE_T_SPECIFIER in vulkaninfo
-rw-r--r--demos/vulkaninfo.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/demos/vulkaninfo.c b/demos/vulkaninfo.c
index 69a85f9d..efee55fb 100644
--- a/demos/vulkaninfo.c
+++ b/demos/vulkaninfo.c
@@ -594,6 +594,12 @@ static void app_gpu_multi_compat(struct app_gpu *gpus, uint32_t gpu_count)
}
}
+#ifdef _WIN32
+#define PRINTF_SIZE_T_SPECIFIER "%Iu"
+#else
+#define PRINTF_SIZE_T_SPECIFIER "%zu"
+#endif
+
static void app_gpu_dump_props(const struct app_gpu *gpu)
{
const VkPhysicalDeviceProperties *props = &gpu->props;
@@ -605,7 +611,7 @@ static void app_gpu_dump_props(const struct app_gpu *gpu)
printf("\tdeviceId = 0x%04x\n", props->deviceId);
printf("\tdeviceType = %s\n", vk_physical_device_type_string(props->deviceType));
printf("\tdeviceName = %s\n", props->deviceName);
- printf("\tmaxInlineMemoryUpdateSize = %zu\n", props->maxInlineMemoryUpdateSize);
+ printf("\tmaxInlineMemoryUpdateSize = " PRINTF_SIZE_T_SPECIFIER "\n", props->maxInlineMemoryUpdateSize);
printf("\tmaxBoundDescriptorSets = %u\n", props->maxBoundDescriptorSets);
printf("\tmaxThreadGroupSize = %u\n", props->maxThreadGroupSize);
printf("\ttimestampFrequency = %lu\n", props->timestampFrequency);