| 7423 | } |
| 7424 | |
| 7425 | bool 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 | |
| 7443 | uint32_t VmaBlockBufferImageGranularity::OffsetToPageIndex(VkDeviceSize offset) const |
| 7444 | { |
no test coverage detected