| 159 | } |
| 160 | |
| 161 | void Tr2RenderContext::PrepareParallelContext( uint32_t index, Tr2RenderContext& context ) |
| 162 | { |
| 163 | #if TRINITY_PLATFORM_SUPPORTS_PARALLEL_CONTEXTS |
| 164 | ForkContext( &context, index ); |
| 165 | for( uint32_t i = 0; i != CBUFFER_COUNT; ++i ) |
| 166 | { |
| 167 | Tr2ConstantBufferAL* buffer = GetConstantBuffer( i ); |
| 168 | if( buffer && buffer->IsValid() ) |
| 169 | { |
| 170 | void* data = nullptr; |
| 171 | buffer->Lock( &data, *this ); |
| 172 | context.GetConstantBuffer( i )->Create( buffer->GetSize(), Tr2ConstantUsageAL::REUSABLE, data, *this ); |
| 173 | buffer->Unlock( *this ); |
| 174 | } |
| 175 | } |
| 176 | context.m_esm.AssignFrom( m_esm ); |
| 177 | #endif |
| 178 | } |
| 179 | |
| 180 | uint32_t Tr2RenderContext::BeginParallelEncoding( uint32_t count ) |
| 181 | { |
nothing calls this directly
no test coverage detected