DEVICE DRAW VERTEX BUFFER TOO SMALL

minggoddess發表於2015-01-06

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裡有定義

 

相關文章