Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

VanVan

How to correct this from DX8 to DX9

This topic is 5808 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

In DX8 m_pD3DDevice->SetVertexShader(D3DFVF_XYZ); However In DX9 such statement change to HRESULT SetVertexShader(D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 pVertexShader); So the error has occurred How to correct this?? thx a lot

Share this post


Link to post
Share on other sites
Advertisement
Hehe I struggled with that one yesterday as well. I think the solution is this, instead of SetVertexShader() call SetFVF(FVF_WHATEVER) and it should work. Haven''t tested it yet though, but it compiles

Share this post


Link to post
Share on other sites
Yep, that''s it - you use SetFVF instead of SetVertexShader now because they have seperated the flexible vertex format from the vertex shader.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!