Can I flush a memory range after unmap?
At first seems wrong, because the function is called vkFlushMappedMemoryRanges()
, but the documentation seems to imply the memory is ready to be flushed, even after being unmapped:
Unmapping non-coherent memory does not implicitly flush the mapped memory, and host writes that have not been flushed may not ever be visible to the device. However, implementations must ensure that writes that have not been flushed do not become visible to any other memory.