DEVICE DRAW VERTEX BUFFER TOO SMALL

时间:2023-03-08 22:13:33

D3D11 WARNING #356

这个傻warning的意思看起来是说vertex buffer 太小了

描述是这样的: Vertex Buffer at the input vertex slot 0 is not big enough for what the Draw*() call expects to traverse.....blablabla

字面感觉是vertexbuffer太小了 stride 12

解决方法在引擎里查 那个error 跟到一个位置发现需要的input assembler的一个slot 类型不匹配所以他没有拿到数据用nsight跟IA可以看到是空的cdcdcdcd这种或者连结构都没生成

现在在做的是ps4到d3d11

这是一个semantic引起的 screenvertex 这个semantic在ps4的pssl里面用的VERTEX现在要用WHOP在引擎的semantic里有定义