Doing all work about processing from this article.

Detect headers,get pitch from this formula:

max( 1, ((width+3)/4) ) * block-size  (block-size == 16)

then trying to CreateTexture2D( &texDesc, resData, &texture );

I filled all fields from header. But always get E_INVALIDARG. Can't find out my problem.

有帮助吗?

解决方案

Create your ID3D11Device with the debug flag D3D11_CREATE_DEVICE_DEBUG and look at the error explanation in the output window.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top