这个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'.

CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT的更多相关文章

随机推荐

  1. PHP Startup: Unable to load dynamic library

    昨天帮一朋友配置服务器结果发现apache日志中有PHP Warning: PHP Startup: Unable to load dynamic library 提示了,然后调试数据库连接发现提示C ...

  2. C++实现按绩点排名

    题目内容:有一些班级的学生需要按绩点计算并排名.每门课的成绩只有在60分以上(含),才予以计算绩点.课程绩点的计算公式为:(课程成绩-50)÷10×学分数.一个学生的总绩点为其所有课程绩点总和除以10 ...

  3. android 特效UI实现

    弧形菜单 https://github.com/daCapricorn/ArcMenu

  4. BufferedInputSream和BufferedOutputSream,,,

    package cd.itcast.bufferinputstream; import java.io.BufferedInputStream; import java.io.File; import ...

  5. 正整数转换成N进制的数组

    给定一个正整数,按照N进制转换成数组元素存储 //给定一个整数,把它转换成按照N进制存储的数组 #include <stdio.h> #include <stdlib.h> # ...

  6. uva 11186 Circum Triangle<叉积>

    链接: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&a ...

  7. 菜鸟学习Struts——bean标签库

    一.Struts标签库. Struts实际上包含了4个标签库:bean,logic,html,tiles bean:用来在属性范围中定义或取得属性的,同时可以读取资源文件信息 logic:替代JSTL ...

  8. hdu 2578 Dating with girls(1)

    题目连接 http://acm.hdu.edu.cn/showproblem.php?pid=2578 Dating with girls(1) Description Everyone in the ...

  9. .net 面试问题 汇总

    用.net做B/S结构的系统,您是用几层结构来开发,每一层之间的关系以及为什么要这样分层? 答: 从下至上分别为:数据访问层.业务逻辑层(又或成为领域层).表示层 数据访问层:有时候也称为是持久层,其 ...

  10. Run ionic web app in nodejs

    首先需要express插件:sudo npm install express 将ionic project的www拷贝至wwwroot,新建server.js: var express = requi ...