| 108 | } |
| 109 | |
| 110 | uint32_t VulkanMemoryManager::GetOffsetAlignment(ResourceType resourceType) const |
| 111 | { |
| 112 | if (resourceType == ResourceType::Uniform) |
| 113 | { |
| 114 | static uint32_t const kUniformAlignment = |
| 115 | math::LCM(static_cast<uint32_t>(m_deviceLimits.minUniformBufferOffsetAlignment), |
| 116 | static_cast<uint32_t>(m_deviceLimits.nonCoherentAtomSize)); |
| 117 | return kUniformAlignment; |
| 118 | } |
| 119 | |
| 120 | static uint32_t const kAlignment = math::LCM(static_cast<uint32_t>(m_deviceLimits.minMemoryMapAlignment), |
| 121 | static_cast<uint32_t>(m_deviceLimits.nonCoherentAtomSize)); |
| 122 | return kAlignment; |
| 123 | } |
| 124 | |
| 125 | uint32_t VulkanMemoryManager::GetSizeAlignment(VkMemoryRequirements const & memReqs) const |
| 126 | { |
no test coverage detected