| 11355 | } |
| 11356 | |
| 11357 | VmaAllocHandle VmaAllocation_T::GetAllocHandle() const |
| 11358 | { |
| 11359 | switch (m_Type) |
| 11360 | { |
| 11361 | case ALLOCATION_TYPE_BLOCK: |
| 11362 | return m_BlockAllocation.m_AllocHandle; |
| 11363 | case ALLOCATION_TYPE_DEDICATED: |
| 11364 | return VK_NULL_HANDLE; |
| 11365 | default: |
| 11366 | VMA_ASSERT(0); |
| 11367 | return VK_NULL_HANDLE; |
| 11368 | } |
| 11369 | } |
| 11370 | |
| 11371 | VkDeviceSize VmaAllocation_T::GetOffset() const |
| 11372 | { |