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

Method ClearLightIndices

trinity/Tr2LightManager.cpp:370–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370ALResult Tr2LightManager::ClearLightIndices( Tr2RenderContext& renderContext )
371{
372 if( !m_indexBuffer || !m_indexBuffer->GetGpuBuffer( 0 ) )
373 {
374 return S_OK;
375 }
376 const uint32_t clear[] = { 0, 0, 0, 0 };
377 return renderContext.ClearUav( *m_indexBuffer->GetGpuBuffer( 0 ), clear );
378}
379
380ALResult Tr2LightManager::UpdateLightBuffer( Tr2RenderContext& renderContext )
381{

Callers

nothing calls this directly

Calls 2

GetGpuBufferMethod · 0.45
ClearUavMethod · 0.45

Tested by

no test coverage detected