MCPcopy Create free account
hub / github.com/BobbyAnguelov/Esoterica / ReflectFrameCommandBuffer

Method ReflectFrameCommandBuffer

Code/Base/Drawing/DebugDrawingSystem.cpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 DebugDrawSystem::~DebugDrawSystem()
37 {
38 for ( auto& record : m_threadCommandBuffers )
39 {
40 EE::Delete( record.m_pBuffer );
41 }
42 m_threadCommandBuffers.clear();
43 }
44
45 void DebugDrawSystem::ReflectFrameCommandBuffer( DebugDrawInternal::FrameCommandBuffer& reflectedFrameCommands )
46 {
47 // Reflect all the new commands into the frame buffer
48 Threading::ScopeLockRead Lock( m_threadCommandBuffersMutex );
49 for ( CommandBufferRecord& record : m_threadCommandBuffers )
50 {
51 reflectedFrameCommands.AddThreadCommands( *record.m_pBuffer );

Callers 1

RenderWorldMethod · 0.80

Calls 3

AddThreadCommandsMethod · 0.80
ResetMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected