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

Function FindInputElement

trinityal/dx11/Tr2VertexLayoutALDx11.cpp:144–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static 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
157ALResult Tr2VertexLayoutAL::SetLayout( const TrinityALImpl::Tr2ShaderAL* vertexShader, Tr2RenderContextAL& renderContext ) const
158{

Callers 1

SetLayoutMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected