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

Method Fill

libs/drape/vulkan/vulkan_object_manager.cpp:417–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void VulkanObjectManager::Fill(VulkanObject object, void const * data, uint32_t sizeInBytes)
418{
419 std::lock_guard<std::mutex> lock(m_mutex);
420 void * gpuPtr = MapUnsafe(object);
421 if (data != nullptr)
422 memcpy(gpuPtr, data, sizeInBytes);
423 else
424 memset(gpuPtr, 0, sizeInBytes);
425 FlushUnsafe(object);
426 UnmapUnsafe(object);
427}
428
429void VulkanObjectManager::CreateDescriptorPool()
430{

Callers 2

ResizeMethod · 0.45
BuildMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected