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

Method GetAligned

libs/drape/vulkan/vulkan_memory_manager.cpp:131–136  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

129
130// static
131uint32_t VulkanMemoryManager::GetAligned(uint32_t value, uint32_t alignment)
132{
133 if (alignment == 0)
134 return value;
135 return (value + alignment - 1) & ~(alignment - 1);
136}
137
138VulkanMemoryManager::AllocationPtr VulkanMemoryManager::Allocate(ResourceType resourceType,
139 VkMemoryRequirements memReqs, uint64_t blockHash)

Callers 3

ApplyBytesMethod · 0.80
HasEnoughSpaceMethod · 0.80
ReserveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected