MCPcopy Create free account
hub / github.com/carbonengine/trinity / MapForReading

Method MapForReading

trinity/Tr2SuballocatedBuffer.cpp:233–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233ALResult Tr2SuballocatedBuffer::Allocation::MapForReading( const void*& data, Tr2RenderContextAL& renderContext )
234{
235 CR_RETURN_HR( m_parent->ReadBuffer( m_mappedCopy, m_offset, m_size, renderContext ) );
236 data = m_mappedCopy.get();
237 return S_OK;
238}
239
240
241void Tr2SuballocatedBuffer::Allocation::UnmapForReading( Tr2RenderContextAL& renderContext )

Callers 1

ReadBufferMethod · 0.45

Calls 2

ReadBufferMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected