size_t alignment,
VkSystemAllocationScope allocationScope)
{
- return malloc(size);
+#ifdef _MSC_VER
+ return _aligned_malloc(size, alignment);
+#else
+ return aligned_malloc(alignment, size);
+#endif
}
VKAPI_ATTR void VKAPI_CALL myfree(
void* pUserData,
void* pMemory)
{
+#ifdef _MSC_VER
+ _aligned_free(pMemory);
+#else
free(pMemory);
+#endif
}
+
static void demo_init_vk(struct demo *demo)
{
VkResult err;
};
static VKAPI_ATTR VkBool32 VKAPI_CALL dbg_callback(
- VkDebugReportFlagsEXT msgFlags,
+ VkFlags msgFlags,
VkDebugReportObjectTypeEXT objType,
uint64_t srcObject,
size_t location,