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

Method SetupContextResources

trinity/Shader/Tr2EffectStateManager.cpp:1165–1177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1163}
1164
1165void Tr2EffectStateManager::SetupContextResources()
1166{
1167 // Create all HW vertex layouts here to avoid creating those during multithreaded rendering
1168 for( auto& it : s_vertexLayoutMap )
1169 {
1170 Tr2VertexLayoutAL& hvl = *it.second;
1171 if( !hvl.IsValid() )
1172 {
1173 USE_MAIN_THREAD_RENDER_CONTEXT();
1174 hvl.Create( it.first, renderContext );
1175 }
1176 }
1177}
1178
1179void Tr2EffectStateManager::AssignFrom( const Tr2EffectStateManager& other )
1180{

Callers 1

BeginParallelEncodingMethod · 0.80

Calls 2

IsValidMethod · 0.45
CreateMethod · 0.45

Tested by

no test coverage detected