MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / PrintParameters

Method PrintParameters

include/vk_mem_alloc.h:11204–11226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11202
11203#if VMA_STATS_STRING_ENABLED
11204void 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
11228VkResult VmaAllocation_T::GetWin32Handle(VmaAllocator hAllocator, HANDLE hTargetProcess, HANDLE* pHandle) noexcept
11229{

Callers 2

BuildStatsStringMethod · 0.80

Calls 5

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

Tested by

no test coverage detected