VK_CHECK(vk.flushMappedMemoryRanges(dev, 1u, &range));
}
+ void invalidate (VkDeviceSize offset,
+ VkDeviceSize size)
+ {
+ const VkMappedMemoryRange range = makeMemoryRange(offset, size);
+ VK_CHECK(vk.invalidateMappedMemoryRanges(dev, 1u, &range));
+ }
+
+
protected:
const DeviceInterface& vk;
const VkDevice& dev;
deUint8* hostBuffer = static_cast<deUint8*>(hostMemory.ptr());
SimpleRandomGenerator random (dataSeed);
+ hostMemory.invalidate(0u, params.bufferSize);
+
for (deUint32 i = 0u; i < params.bufferSize; ++i)
{
if (hostBuffer[i] != static_cast<deUint8>(random.getNext() & 0xFFu) )