MCPcopy Create free account
hub / github.com/comaps/comaps / MapUnsafe

Method MapUnsafe

libs/drape/vulkan/vulkan_object_manager.cpp:380–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380uint8_t * VulkanObjectManager::MapUnsafe(VulkanObject object)
381{
382 CHECK(!object.m_allocation->m_memoryBlock->m_isBlocked, ());
383
384 CHECK(object.m_buffer != VK_NULL_HANDLE || object.m_image != VK_NULL_HANDLE, ());
385 uint8_t * ptr = nullptr;
386 CHECK_VK_CALL(vkMapMemory(m_device, object.GetMemory(), object.GetAlignedOffset(), object.GetAlignedSize(), 0,
387 reinterpret_cast<void **>(&ptr)));
388 object.m_allocation->m_memoryBlock->m_isBlocked = true;
389 return ptr;
390}
391
392void VulkanObjectManager::FlushUnsafe(VulkanObject object, uint32_t offset, uint32_t size)
393{

Callers 2

CreateUniformBufferFunction · 0.80
VulkanStagingBufferMethod · 0.80

Calls 3

GetMemoryMethod · 0.80
GetAlignedOffsetMethod · 0.80
GetAlignedSizeMethod · 0.80

Tested by

no test coverage detected