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

Method GetStartIndexValue

libs/drape/vertex_array_buffer.cpp:311–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311uint32_t VertexArrayBuffer::GetStartIndexValue() const
312{
313 if (m_staticBuffers.empty())
314 return 0;
315
316#ifdef DEBUG
317 auto it = m_staticBuffers.begin();
318 uint32_t const prev = it->second->GetBuffer()->GetCurrentSize();
319 for (; it != m_staticBuffers.end(); ++it)
320 ASSERT(prev == it->second->GetBuffer()->GetCurrentSize(), ());
321#endif
322
323 return m_staticBuffers.begin()->second->GetBuffer()->GetCurrentSize();
324}
325
326uint32_t VertexArrayBuffer::GetDynamicBufferOffset(BindingInfo const & bindingInfo)
327{

Callers 1

GetIndexStorageMethod · 0.80

Calls 6

ASSERTFunction · 0.85
emptyMethod · 0.45
beginMethod · 0.45
GetCurrentSizeMethod · 0.45
GetBufferMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected