MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / PrintParameters

Method PrintParameters

include/vk_mem_alloc.h:11527–11549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11525
11526#if VMA_STATS_STRING_ENABLED
11527void 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
11551VkResult VmaAllocation_T::GetWin32Handle(VmaAllocator hAllocator, VkExternalMemoryHandleTypeFlagBits handleType, HANDLE hTargetProcess, HANDLE* pHandle) noexcept
11552{

Callers 2

BuildStatsStringMethod · 0.80

Calls 5

WriteStringMethod · 0.80
WriteNumberMethod · 0.80
BeginStringMethod · 0.80
EndStringMethod · 0.80

Tested by

no test coverage detected