vkFlushMappedMemoryRanges
vkFlushMappedMemoryRanges is a Vulkan API function used to flush host writes to mapped device memory so that the device can observe those changes. It operates on memory that has been mapped into the host address space and uses an array of VkMappedMemoryRange structures to specify which parts of which memory objects should be flushed.
In Vulkan, memory types can be host-visible but either coherent or non-coherent. If a memory type does
Usage involves providing the device, the number of memory ranges, and a pointer to an array of
The function returns a VkResult, with VK_SUCCESS indicating success. Possible error codes include VK_ERROR_MEMORY_MAP_FAILED if the
Related functionality includes vkInvalidateMappedMemoryRanges, which invalidates host caches to reflect device writes back to host memory.