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

Method GetSizeAlignment

libs/drape/vulkan/vulkan_memory_manager.cpp:125–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125uint32_t VulkanMemoryManager::GetSizeAlignment(VkMemoryRequirements const & memReqs) const
126{
127 return math::LCM(static_cast<uint32_t>(memReqs.alignment), static_cast<uint32_t>(m_deviceLimits.nonCoherentAtomSize));
128}
129
130// static
131uint32_t VulkanMemoryManager::GetAligned(uint32_t value, uint32_t alignment)

Callers 2

CreateUniformBufferFunction · 0.80
VulkanStagingBufferMethod · 0.80

Calls 1

LCMFunction · 0.85

Tested by

no test coverage detected