| 861 | } |
| 862 | |
| 863 | uint32_t Tr2EffectStateManager::GetVertexDeclarationHandle( const Tr2VertexDefinition& vertexDefinition ) |
| 864 | { |
| 865 | std::scoped_lock lock( s_vertexLayoutMutex ); |
| 866 | |
| 867 | for( size_t i = 0; i != s_vertexLayoutMap.size(); ++i ) |
| 868 | { |
| 869 | if( s_vertexLayoutMap[i].first == vertexDefinition ) |
| 870 | { |
| 871 | return (uint32_t)i; |
| 872 | } |
| 873 | } |
| 874 | |
| 875 | s_vertexLayoutMap.push_back( std::make_pair( vertexDefinition, new Tr2VertexLayoutAL() ) ); |
| 876 | return (uint32_t)s_vertexLayoutMap.size() - 1; |
| 877 | } |
| 878 | |
| 879 | void Tr2EffectStateManager::ApplyVertexDeclaration( uint32_t declaration ) |
| 880 | { |
no test coverage detected