| 659 | inline void Allocated<bindingType, HandleType>::set_allocation(VmaAllocation alloc) |
| 660 | { |
| 661 | allocation = alloc; |
| 662 | } |
| 663 | |
| 664 | template <vkb::BindingType bindingType, typename HandleType> |
| 665 | inline void Allocated<bindingType, HandleType>::post_create(VmaAllocationInfo const &allocation_info) |
| 666 | { |
| 667 | VkMemoryPropertyFlags memory_properties; |
| 668 | vmaGetAllocationMemoryProperties(get_memory_allocator(), allocation, &memory_properties); |
| 669 | coherent = (memory_properties & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == VK_MEMORY_PROPERTY_HOST_COHERENT_BIT; |
| 670 | mapped_data = static_cast<uint8_t *>(allocation_info.pMappedData); |
| 671 | persistent = mapped(); |
no outgoing calls
no test coverage detected