zoukankan      html  css  js  c++  java
  • 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'.  

  • 相关阅读:
    优化webstorm打开项目速度
    组件 -- Button
    组件 --BreadCrumb--面包屑
    组件 -- Badge
    组件 -- Alert
    表格-table 样式
    image 样式设置
    文本和字体样式设置
    bootstrap-网格系统
    c#方法
  • 原文地址:https://www.cnblogs.com/minggoddess/p/4155352.html
Copyright © 2011-2022 走看看