I've just build Ogre 1.10.8 without any tweaking and tried to run New Instancing sample from SampleBrowser but it crashes with message Unable to set D3D11 vertex declaration in D3D11VertexDeclaration::getILayoutByShader. The only solution I found in forum is in this topic: http://www.ogre3d.org/forums/viewtopic.php?f=2&t=73955 but I do not know how to use it.
So far I digged a bit into Ogre source and found cause of the problem, it is that in D3D11VertexDeclaration::getD3DVertexDeclaration function in this cycle
Code: Select all
for (i = mElementList.begin(); i != iend; ++i)
{
LPCSTR semanticName = D3D11Mappings::get(i->getSemantic());
UINT semanticIndex = i->getIndex();
if(
strcmp(semanticName, inputDesc.SemanticName) == 0
&& semanticIndex == inputDesc.SemanticIndex
)
{
found = true;
break;
}
}
Is there any workaround?
Thanks,
Radagast