| 605 | |
| 606 | template <vkb::BindingType bindingType, typename HandleType> |
| 607 | inline typename Allocated<bindingType, HandleType>::DeviceSizeType Allocated<bindingType, HandleType>::get_memory_offset() const |
| 608 | { |
| 609 | VmaAllocationInfo alloc_info; |
| 610 | vmaGetAllocationInfo(get_memory_allocator(), allocation, &alloc_info); |
| 611 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 612 | { |
| 613 | return static_cast<vk::DeviceSize>(alloc_info.offset); |
| 614 | } |
| 615 | else |
| 616 | { |
| 617 | return alloc_info.offset; |
| 618 | } |
| 619 | } |
| 620 | |
| 621 | template <vkb::BindingType bindingType, typename HandleType> |
| 622 | inline uint8_t *Allocated<bindingType, HandleType>::map() |
no outgoing calls
no test coverage detected