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

Method GetBuffer

libs/drape/vertex_array_buffer.cpp:256–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256ref_ptr<DataBuffer> VertexArrayBuffer::GetBuffer(BindingInfo const & bindingInfo, bool isDynamic) const
257{
258 BuffersMap const * buffers = nullptr;
259 if (isDynamic)
260 buffers = &m_dynamicBuffers;
261 else
262 buffers = &m_staticBuffers;
263
264 auto it = buffers->find(bindingInfo);
265 if (it == buffers->end())
266 return nullptr;
267
268 return make_ref(it->second);
269}
270
271ref_ptr<DataBuffer> VertexArrayBuffer::GetOrCreateBuffer(BindingInfo const & bindingInfo, bool isDynamic)
272{

Callers 7

BindBuffersMethod · 0.45
UploadDataMethod · 0.45
GetStartIndexValueMethod · 0.45
ApplyMutationMethod · 0.45
GetIndexBufferMethod · 0.45

Calls 3

make_refFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected