• Advertisement
Sign in to follow this  

how to replace D3DFVF_XYZRHW in D3D11

This topic is 968 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

 m_spD3DDevice->SetFVF(D3DFVF_XYZRHW | D3DFVF_TEX1);

but i shifting to D3D11.

which can i replace D3DFVF_XYZRHW in d3d11?

 

Share this post


Link to post
Share on other sites
Advertisement

D3DXDeclaratorFromFVF can be very helpful for this.  Give it an FVF code, it will spit out an array of D3DVERTEXELEMENT9, and you can then just convert those over to the D3D11_INPUT_ELEMENT_DESC equivalents.

 

Having access to an old DirectX SDK will of course make using this a lot easier, but if not, it should be possible to do this in code in a D3D11 program since I don't believe that it even requires a D3D9 device to even exist.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement