CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT

这个error的全称是这样的

D3D11 ERROR: ID3D11Device::CreateInputLayout: Element[1]'s format (UNKNOW) cannot be used with the Input Assembler. [ STATE_CREATION ERROR #153: CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT]

d3d11这个error。。只搜到两个德文的网页也没什么帮助

角色卡在这里了

这个问题卡了我一下午,后来把第一篇德文网页翻译了下,清晰些了

https://qage.in.tum.de/ss2013/?qa=966/error-code-e_invalidarg-calling-pdevice-createinputlayout

这人说他那里报DXXXX的format是深度专用的format我就去跟我的iaElementdesc 发现我这里color的format是unknow

我把编数据时写进去的format改成另外一个不是unknow的虽然报了mismatch的warning但是 好多了 能显示出东西了 

继场景之后,人物又取得了突破性进展

后来改成mismatch的warning了

这个问题修好了,skinindices shader里面用uint4 对应format用 DXGI_FORMAT_R8G8B8A8_UINT

ID3D11Device::CreateInputLayout: The provided input signature expects to read an element with SemanticName/Index: 'COLOR'/0 and component(s) of the type 'int32'.  However, the matching entry in the Input Layout declaration, element[2], specifies mismatched format: 'R32_UINT'.  

posted on 2014-12-10 14:21  minggoddess  阅读(605)  评论(0编辑  收藏  举报