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

Method WriteIndent

include/vk_mem_alloc.h:6287–6303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6285}
6286
6287void VmaJsonWriter::WriteIndent(bool oneLess)
6288{
6289 if (!m_Stack.empty() && !m_Stack.back().singleLineMode)
6290 {
6291 m_SB.AddNewLine();
6292
6293 size_t count = m_Stack.size();
6294 if (count > 0 && oneLess)
6295 {
6296 --count;
6297 }
6298 for (size_t i = 0; i < count; ++i)
6299 {
6300 m_SB.Add(INDENT);
6301 }
6302 }
6303}
6304#endif // _VMA_JSON_WRITER_FUNCTIONS
6305
6306namespace

Callers

nothing calls this directly

Calls 4

AddNewLineMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected