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

Method PrintDetailedMap_Begin

include/vk_mem_alloc.h:6857–6874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6855
6856#if VMA_STATS_STRING_ENABLED
6857void VmaBlockMetadata::PrintDetailedMap_Begin(class VmaJsonWriter& json,
6858 VkDeviceSize unusedBytes, size_t allocationCount, size_t unusedRangeCount) const
6859{
6860 json.WriteString("TotalBytes");
6861 json.WriteNumber(GetSize());
6862
6863 json.WriteString("UnusedBytes");
6864 json.WriteNumber(unusedBytes);
6865
6866 json.WriteString("Allocations");
6867 json.WriteNumber((uint64_t)allocationCount);
6868
6869 json.WriteString("UnusedRanges");
6870 json.WriteNumber((uint64_t)unusedRangeCount);
6871
6872 json.WriteString("Suballocations");
6873 json.BeginArray();
6874}
6875
6876void VmaBlockMetadata::PrintDetailedMap_Allocation(class VmaJsonWriter& json,
6877 VkDeviceSize offset, VkDeviceSize size, void* userData) const

Callers

nothing calls this directly

Calls 4

BeginArrayMethod · 0.80
GetSizeFunction · 0.50
WriteStringMethod · 0.45
WriteNumberMethod · 0.45

Tested by

no test coverage detected