I'm having a small issue with D3DXVec3Unproject. I'm currently using Direct3D 11 and not 10, and the signature for this function is:
D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, CONST D3D10_VIEWPORT *pViewport, CONST D3DXMATRIX *pProjection, CONST D3DXMATRIX *pView, CONST D3DXMATRIX *pWorld
As you may have noticed, it requires a
D3D10_VIEWPORT, and I'm using a Direct3D 11 viewport,
Do you have any ideas how I can use D3DXVec3Unproject with Direct3D 11?