| 11369 | } |
| 11370 | |
| 11371 | VkDeviceSize VmaAllocation_T::GetOffset() const |
| 11372 | { |
| 11373 | switch (m_Type) |
| 11374 | { |
| 11375 | case ALLOCATION_TYPE_BLOCK: |
| 11376 | return m_BlockAllocation.m_Block->m_pMetadata->GetAllocationOffset(m_BlockAllocation.m_AllocHandle); |
| 11377 | case ALLOCATION_TYPE_DEDICATED: |
| 11378 | return 0; |
| 11379 | default: |
| 11380 | VMA_ASSERT(0); |
| 11381 | return 0; |
| 11382 | } |
| 11383 | } |
| 11384 | |
| 11385 | VmaPool VmaAllocation_T::GetParentPool() const |
| 11386 | { |
no test coverage detected