MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / FinishValidation

Method FinishValidation

include/vk_mem_alloc.h:7425–7441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7423}
7424
7425bool VmaBlockBufferImageGranularity::FinishValidation(ValidationContext& ctx) const
7426{
7427 if (!IsEnabled())
7428 return true;
7429
7430 // Check proper page structure
7431 VMA_ASSERT(ctx.pageAllocs != VMA_NULL && "Validation context not initialized!");
7432
7433 for (uint32_t page = 0; page < m_RegionCount; ++page)
7434 {
7435 VMA_VALIDATE(ctx.pageAllocs[page] == m_RegionInfo[page].allocCount);
7436 }
7437 vma_delete_array(ctx.allocCallbacks, ctx.pageAllocs, m_RegionCount);
7438 ctx.pageAllocs = VMA_NULL;
7439
7440 return true;
7441}
7442
7443uint32_t VmaBlockBufferImageGranularity::OffsetToPageIndex(VkDeviceSize offset) const
7444{

Callers 1

ValidateMethod · 0.80

Calls 1

vma_delete_arrayFunction · 0.85

Tested by

no test coverage detected