문제

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