add a comment explaining how to make the sample app not crashing with RenderDoc

This commit is contained in:
Adam Sawicki 2019-04-16 12:55:35 +02:00
parent 5b7d1e2f3f
commit f48896d164

View File

@ -1284,6 +1284,14 @@ static void InitializeApplication()
if(VK_KHR_dedicated_allocation_enabled)
{
/*
Comment out this line to make the app working with RenderDoc.
RenderDoc relies on pointers to Vulkan function being null or not null instead
of checking whether the app really uses Vulkan 1.0 or 1.1. This app uses Vulkan
1.0 and VK_KHR_dedicated_allocation extension instead of equivalent
functionality embedded into Vulkan 1.1.
*/
allocatorInfo.flags |= VMA_ALLOCATOR_CREATE_KHR_DEDICATED_ALLOCATION_BIT;
}