| 142 | } |
| 143 | |
| 144 | static bool FindInputElement( const TrackableStdVector<D3D11_INPUT_ELEMENT_DESC>& elements, |
| 145 | const Tr2ShaderPipelineInputAL& element ) |
| 146 | { |
| 147 | for( auto it = elements.begin(); it != elements.end(); ++it ) |
| 148 | { |
| 149 | if( element.usageIndex == it->SemanticIndex && strcmp( semanticNames[element.usage], it->SemanticName ) == 0 ) |
| 150 | { |
| 151 | return true; |
| 152 | } |
| 153 | } |
| 154 | return false; |
| 155 | } |
| 156 | |
| 157 | ALResult Tr2VertexLayoutAL::SetLayout( const TrinityALImpl::Tr2ShaderAL* vertexShader, Tr2RenderContextAL& renderContext ) const |
| 158 | { |