问题描述 D3DX10ComputeNormalMap函数使用报错D3DERR_INVALIDCALL void MyApp::CreateNormalmap(LPCTSTR srcFile, LPCTSTR saveFile) { HR(D3DX10CreateTextureFromFile(md3dDevice, srcFile, 0, 0, (ID3D10Resource**)&SrcTex, 0)); HR(D3DX10ComputeNormalMap(SrcTex, D3DX_NORM