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

Method EndSceneUpdate

trinity/Raytracing/Tr2RaytracingGeometry.cpp:619–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617
618
619void Tr2RaytracingGeometry::EndSceneUpdate( Tr2RenderContext& renderContext, int32_t numRaycasters, Tr2RtShaderTableDescriptionAL** shaderTableDescs, Tr2RaytracingPipelineStateManager** pipelineManagers )
620{
621 for( auto& threadLocalData : m_threadLocalGeometryData )
622 {
623 m_geometryData.insert( end( m_geometryData ), begin( threadLocalData ), end( threadLocalData ) );
624 threadLocalData.clear();
625 }
626 for( auto& threadLocalData : m_threadLocalUsedResources )
627 {
628 m_usedResources.Add( threadLocalData );
629 threadLocalData.Clear();
630 }
631
632 PrepareShaderTableDescription( renderContext, numRaycasters, shaderTableDescs, pipelineManagers );
633 TransformMeshes( renderContext );
634 BuildAccelerationStructures( renderContext );
635}
636
637void Tr2RaytracingGeometry::PrepareShaderTableDescription( Tr2RenderContext& renderContext, int32_t numRaycasters, Tr2RtShaderTableDescriptionAL** shaderTableDescs, Tr2RaytracingPipelineStateManager** pipelineManagers )
638{

Callers 1

Calls 4

endFunction · 0.50
beginFunction · 0.50
AddMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected