| 11525 | |
| 11526 | #if VMA_STATS_STRING_ENABLED |
| 11527 | void VmaAllocation_T::PrintParameters(class VmaJsonWriter& json) const |
| 11528 | { |
| 11529 | json.WriteString("Type"); |
| 11530 | json.WriteString(VMA_SUBALLOCATION_TYPE_NAMES[m_SuballocationType]); |
| 11531 | |
| 11532 | json.WriteString("Size"); |
| 11533 | json.WriteNumber(m_Size); |
| 11534 | json.WriteString("Usage"); |
| 11535 | json.WriteNumber(m_BufferImageUsage.Value); // It may be uint32_t or uint64_t. |
| 11536 | |
| 11537 | if (m_pUserData != VMA_NULL) |
| 11538 | { |
| 11539 | json.WriteString("CustomData"); |
| 11540 | json.BeginString(); |
| 11541 | json.ContinueString_Pointer(m_pUserData); |
| 11542 | json.EndString(); |
| 11543 | } |
| 11544 | if (m_pName != VMA_NULL) |
| 11545 | { |
| 11546 | json.WriteString("Name"); |
| 11547 | json.WriteString(m_pName); |
| 11548 | } |
| 11549 | } |
| 11550 | #if VMA_EXTERNAL_MEMORY_WIN32 |
| 11551 | VkResult VmaAllocation_T::GetWin32Handle(VmaAllocator hAllocator, VkExternalMemoryHandleTypeFlagBits handleType, HANDLE hTargetProcess, HANDLE* pHandle) noexcept |
| 11552 | { |
no test coverage detected