}
}
+#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;
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);