ADL for AlmostEqual* and use math:: instead of base:: (#9634)

* ADL for AlmostEqual* and use math:: instead of base::

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2025-07-07 20:49:00 +02:00
committed by Konstantin Pastbin
parent 82133c5743
commit 30718e106e
175 changed files with 542 additions and 559 deletions

View File

@@ -125,20 +125,20 @@ uint32_t VulkanMemoryManager::GetOffsetAlignment(ResourceType resourceType) cons
if (resourceType == ResourceType::Uniform)
{
static uint32_t const kUniformAlignment =
base::LCM(static_cast<uint32_t>(m_deviceLimits.minUniformBufferOffsetAlignment),
math::LCM(static_cast<uint32_t>(m_deviceLimits.minUniformBufferOffsetAlignment),
static_cast<uint32_t>(m_deviceLimits.nonCoherentAtomSize));
return kUniformAlignment;
}
static uint32_t const kAlignment =
base::LCM(static_cast<uint32_t>(m_deviceLimits.minMemoryMapAlignment),
math::LCM(static_cast<uint32_t>(m_deviceLimits.minMemoryMapAlignment),
static_cast<uint32_t>(m_deviceLimits.nonCoherentAtomSize));
return kAlignment;
}
uint32_t VulkanMemoryManager::GetSizeAlignment(VkMemoryRequirements const & memReqs) const
{
return base::LCM(static_cast<uint32_t>(memReqs.alignment),
return math::LCM(static_cast<uint32_t>(memReqs.alignment),
static_cast<uint32_t>(m_deviceLimits.nonCoherentAtomSize));
}