src/core/Buffer.cpp
VkResult Buffer::invalidate(VkDeviceSize size, VkDeviceSize offset) {
    VkMappedMemoryRange mappedRange = {};
    mappedRange.sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE;
    mappedRange.memory = memory;
    mappedRange.offset = offset;
    mappedRange.size = size;
    return vkInvalidateMappedMemoryRanges(device, 1, &mappedRange);
}
/**
* Invalidate a memory range of the buffer to make it visible to the host
*
* @note Only required for non-coherent memory
*
* @param size (Optional) Size of the memory range to invalidate. Pass VK_WHOLE_SIZE to invalidate the complete buffer range.
* @param offset (Optional) Byte offset from beginning
*
* @return VkResult of the invalidate call
*/
Invalidate a memory range of the buffer to make it visible to the host
Invalidate a memory range of the buffer to make it visible to the host
VkResult Buffer::invalidate(VkDeviceSize size, VkDeviceSize offset) {
    VkMappedMemoryRange mappedRange = {};
    mappedRange.sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE;
    mappedRange.memory = memory;
    mappedRange.offset = offset;
    mappedRange.size = size;
    return vkInvalidateMappedMemoryRanges(device, 1, &mappedRange);
}
VkResult Buffer :: invalidate ( VkDeviceSize size , VkDeviceSize offset ) { VkMappedMemoryRange mappedRange = { } ; mappedRange . sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE ; mappedRange . memory = memory ; mappedRange . offset = offset ; mappedRange . size = size ; return vkInvalidateMappedMemoryRanges ( device , 1 , & mappedRange ) ; }
Invalidate a memory range of the buffer to make it visible to the host
Invalidate a memory range of the buffer to make it visible to the host