VKERROROUTOFDEVICEMEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY is a VkResult error code defined by the Vulkan API. It indicates that a Vulkan operation could not be completed because the device could not allocate enough memory for a requested resource. This error is most commonly returned by vkAllocateMemory and may also be observed during resource creation or binding when the allocator cannot satisfy a memory request for the device.
Causes of this error include exhaustion of available device (VRAM) memory and, in some cases, memory fragmentation
Handling and mitigation involve reducing the application’s device memory footprint and improving memory management. Strategies include
Impact and recovery depend on context. A VK_ERROR_OUT_OF_DEVICE_MEMORY typically requires the application to free resources and
See also: VK_ERROR_OUT_OF_HOST_MEMORY, VK_ERROR_FRAGMENTED_POOL, VK_EXT_memory_budget.