| 11397 | } |
| 11398 | |
| 11399 | VkDeviceMemory VmaAllocation_T::GetMemory() const |
| 11400 | { |
| 11401 | switch (m_Type) |
| 11402 | { |
| 11403 | case ALLOCATION_TYPE_BLOCK: |
| 11404 | return m_BlockAllocation.m_Block->GetDeviceMemory(); |
| 11405 | case ALLOCATION_TYPE_DEDICATED: |
| 11406 | return m_DedicatedAllocation.m_hMemory; |
| 11407 | default: |
| 11408 | VMA_ASSERT(0); |
| 11409 | return VK_NULL_HANDLE; |
| 11410 | } |
| 11411 | } |
| 11412 | |
| 11413 | void* VmaAllocation_T::GetMappedData() const |
| 11414 | { |
no test coverage detected