Jump to content
  • Advertisement
Sign in to follow this  

DX11 Somebody tell me how to use Effect system in DX11 pls..

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

*convert shader file from 9/10 to 11[mostly replacing 10 with 11]
*compile effect11 as dll or static library and link it
*call D3DX11CompileFromFileW(FileName,NULL,NULL,"","fx_5_0",CurFlags,NULL,NULL,&fx_compiled,&Errors,NULL);
*validate for errors
*call D3DX11CreateEffectFromMemory(fx_compiled->GetBufferPointer(), fx_compiled->GetBufferSize(),0, dev11, &fx)
*also check for errors
*get from that shader needed techniques
*then just GetTech(id)->GetPass(pid)->Apply()

very similar to d3d10 effects

Share this post

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

  • 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!