MCPcopy Create free account
hub / github.com/comaps/comaps / GetIndexStorage

Method GetIndexStorage

libs/drape/batcher.cpp:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 void * GetIndexStorage(uint32_t size, uint32_t & startIndex) override
45 {
46 startIndex = m_buffer->GetStartIndexValue();
47 if (m_overlay == nullptr || !m_overlay->IndexesRequired())
48 {
49 m_indexStorage.Resize(size);
50 return m_indexStorage.GetRaw();
51 }
52 else
53 {
54 return m_overlay->IndexStorage(size);
55 }
56 }
57
58 void SubmitIndices(ref_ptr<GraphicsContext> context) override
59 {

Callers

nothing calls this directly

Calls 5

GetStartIndexValueMethod · 0.80
IndexesRequiredMethod · 0.45
ResizeMethod · 0.45
GetRawMethod · 0.45
IndexStorageMethod · 0.45

Tested by

no test coverage detected