| 11202 | |
| 11203 | #if VMA_STATS_STRING_ENABLED |
| 11204 | void VmaAllocation_T::PrintParameters(class VmaJsonWriter& json) const |
| 11205 | { |
| 11206 | json.WriteString("Type"); |
| 11207 | json.WriteString(VMA_SUBALLOCATION_TYPE_NAMES[m_SuballocationType]); |
| 11208 | |
| 11209 | json.WriteString("Size"); |
| 11210 | json.WriteNumber(m_Size); |
| 11211 | json.WriteString("Usage"); |
| 11212 | json.WriteNumber(m_BufferImageUsage.Value); // It may be uint32_t or uint64_t. |
| 11213 | |
| 11214 | if (m_pUserData != VMA_NULL) |
| 11215 | { |
| 11216 | json.WriteString("CustomData"); |
| 11217 | json.BeginString(); |
| 11218 | json.ContinueString_Pointer(m_pUserData); |
| 11219 | json.EndString(); |
| 11220 | } |
| 11221 | if (m_pName != VMA_NULL) |
| 11222 | { |
| 11223 | json.WriteString("Name"); |
| 11224 | json.WriteString(m_pName); |
| 11225 | } |
| 11226 | } |
| 11227 | #if VMA_EXTERNAL_MEMORY_WIN32 |
| 11228 | VkResult VmaAllocation_T::GetWin32Handle(VmaAllocator hAllocator, HANDLE hTargetProcess, HANDLE* pHandle) noexcept |
| 11229 | { |
no test coverage detected