Made allocation Name and UserData separate. COMPATIBILITY BREAKING!

Added function vmaSetAllocationName. Added member VmaAllocationInfo::pName.
VMA_ALLOCATION_CREATE_USER_DATA_COPY_STRING_BIT is now deprecated but still works.

Code mostly by @medranSolus
This commit is contained in:
Adam Sawicki 2022-03-03 11:23:14 +01:00
parent bd39bed5e6
commit caf27e0428
26 changed files with 301 additions and 214 deletions

View file

@ -2623,12 +2623,14 @@ int Main2(int argc, wchar_t** argv)
int wmain(int argc, wchar_t** argv)
{
int result = 0;
try
{
return Main2(argc, argv);
result = Main2(argc, argv);
TEST(g_CpuAllocCount.load() == 0);
}
CATCH_PRINT_ERROR(return (int)ExitCode::RuntimeError;)
return result;
}
#else // #ifdef _WIN32