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

Method DoneUsingData

trinity/Tr2DynamicRingBuffer.cpp:130–141  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Notifies the object that the data updated with the previous call to PutData is no longer needed. Arguments: renderContext - current render context --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

128// renderContext - current render context
129// --------------------------------------------------------------------------------------
130void Tr2DynamicRingBuffer::DoneUsingData( Tr2RenderContext& renderContext )
131{
132 if( m_lastPutSucceeded )
133 {
134 if( !m_regions.empty() && m_regions.back().fence && FAILED( m_regions.back().fence->PutFence( renderContext ) ) )
135 {
136 DeallocateFence( m_regions.back().fence );
137 m_regions.back().fence = nullptr;
138 }
139 m_lastPutSucceeded = false;
140 }
141}
142
143// --------------------------------------------------------------------------------------
144// Description:

Callers 2

DoneRenderingMethod · 0.80
IssueDrawCallMethod · 0.80

Calls 2

emptyMethod · 0.80
PutFenceMethod · 0.45

Tested by

no test coverage detected