MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / get_memory

Method get_memory

framework/core/allocated.h:592–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590
591template <vkb::BindingType bindingType, typename HandleType>
592inline 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
606template <vkb::BindingType bindingType, typename HandleType>
607inline typename Allocated<bindingType, HandleType>::DeviceSizeType Allocated<bindingType, HandleType>::get_memory_offset() const

Callers 5

operator()Method · 0.80
prepare_input_tensorMethod · 0.80
prepare_output_tensorMethod · 0.80
prepare_input_tensorMethod · 0.80
prepare_output_tensorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected