vkInvalidateMappedMemoryRanges
vkInvalidateMappedMemoryRanges is a Vulkan API function used to invalidate host memory caches for specified ranges of memory that have been mapped from a device memory object. It is designed for memory that is host-visible but non-coherent, where the device may write data that the CPU would not automatically see without explicit invalidation.
The function takes a device, a count of memory ranges, and an array of VkMappedMemoryRange structures describing
vkInvalidateMappedMemoryRanges is typically used after the device has written to memory that the host will read,
Return values indicate success or specific errors, such as VK_ERROR_OUT_OF_HOST_MEMORY or VK_ERROR_MEMORY_MAP_FAILED, with VK_SUCCESS indicating the