mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
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:
committed by
Konstantin Pastbin
parent
82133c5743
commit
30718e106e
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user