| 590 | |
| 591 | template <vkb::BindingType bindingType, typename HandleType> |
| 592 | inline typename Allocated<bindingType, HandleType>::DeviceMemoryType Allocated<bindingType, HandleType>::get_memory() const |
| 593 | { |
| 594 | VmaAllocationInfo alloc_info; |
| 595 | vmaGetAllocationInfo(get_memory_allocator(), allocation, &alloc_info); |
| 596 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 597 | { |
| 598 | return static_cast<vk::DeviceMemory>(alloc_info.deviceMemory); |
| 599 | } |
| 600 | else |
| 601 | { |
| 602 | return alloc_info.deviceMemory; |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | template <vkb::BindingType bindingType, typename HandleType> |
| 607 | inline typename Allocated<bindingType, HandleType>::DeviceSizeType Allocated<bindingType, HandleType>::get_memory_offset() const |
no outgoing calls
no test coverage detected