I'm using Vulkan SDK 1.3.275 validation layers on Debian. In projects/vk_alloc/main.cpp, if I set enableDebug = true I get the following error:
*** VULKAN VALIDATION ERROR MESSAGE ***
Severity : ERROR
Type : [VALIDATION]
Message : Validation Error: [ VUID-vkAllocateMemory-pAllocateInfo-01713 ] | MessageID = 0xe9a2b96f | vkAllocateMemory(): pAllocateInfo->allocationSize is 268435456 bytes from heap 2,but size of that heap is only 257949696 bytes. The Vulkan spec states: pAllocateInfo->allocationSize must be less than or equal to VkPhysicalDeviceMemoryProperties::memoryHeaps[memindex].size where memindex = VkPhysicalDeviceMemoryProperties::memoryTypes[pAllocateInfo->memoryTypeIndex].heapIndex as returned by vkGetPhysicalDeviceMemoryProperties for the VkPhysicalDevice that device was created from (https://vulkan.lunarg.com/doc/view/1.3.275.0/linux/1.3-extensions/vkspec.html#VUID-vkAllocateMemory-pAllocateInfo-01713)
If I'm compiling with -DCMAKE_BUILD_TYPE=Debug then the program crashes.
I'm using Vulkan SDK 1.3.275 validation layers on Debian. In
projects/vk_alloc/main.cpp
, if I setenableDebug = true
I get the following error:If I'm compiling with
-DCMAKE_BUILD_TYPE=Debug
then the program crashes.Here's the log: ppx.log