VK_MEMORY_PROPERTY_HOST_CACHED_BIT what does this exactly mean?

Hello guys,
i have read the spec about VK_MEMORY_PROPERTY_HOST_CACHED_BIT from a memory heap exposed from a device, but i could not figure it out how exactly it works.
As the spec says heaps are on-device memory and reads are faster than memory without HOST_CACHED. But where exactly is the data? Is it on the RAM and on the GPU memory?

Thanks in Advance :slight_smile:

As the spec says heaps are on-device memory

No, it doesn’t. The spec says that heaps are device accessible memory. The standard doesn’t define which memory is “on-device” and which is not.

What cached represents is exactly that: the hosts caches are in some way involved when the host reads from or writes to the memory.

Oh yes you are right, i totally overread this. Thanks :wink: