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

Method map

framework/core/allocated.h:622–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620
621template <vkb::BindingType bindingType, typename HandleType>
622inline uint8_t *Allocated<bindingType, HandleType>::map()
623{
624 if (!persistent && !mapped())
625 {
626 VK_CHECK(vmaMapMemory(get_memory_allocator(), allocation, reinterpret_cast<void **>(&mapped_data)));
627 assert(mapped_data);
628 }
629 return mapped_data;
630}
631
632template <vkb::BindingType bindingType, typename HandleType>
633inline bool Allocated<bindingType, HandleType>::mapped() const

Callers 15

update_buffersMethod · 0.45
screenshotFunction · 0.45
create_imageMethod · 0.45
operator()Method · 0.45
create_imageMethod · 0.45
operator()Method · 0.45
operator()Method · 0.45
create_index_bufferMethod · 0.45
create_imageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected