| 568 | |
| 569 | template <vkb::BindingType bindingType, typename HandleType> |
| 570 | inline void Allocated<bindingType, HandleType>::flush(DeviceSizeType offset, DeviceSizeType size) |
| 571 | { |
| 572 | if (!coherent) |
| 573 | { |
| 574 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 575 | { |
| 576 | vmaFlushAllocation(get_memory_allocator(), allocation, static_cast<VkDeviceSize>(offset), static_cast<VkDeviceSize>(size)); |
| 577 | } |
| 578 | else |
| 579 | { |
| 580 | vmaFlushAllocation(get_memory_allocator(), allocation, offset, size); |
| 581 | } |
| 582 | } |
| 583 | } |
| 584 | |
| 585 | template <vkb::BindingType bindingType, typename HandleType> |
| 586 | inline const uint8_t *Allocated<bindingType, HandleType>::get_data() const |
no outgoing calls
no test coverage detected