Jump to content
  • Advertisement
Sign in to follow this  
KumGame07

Effect State Save and Restore Flag = 0

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

Hi guys, I'm working on dx effect files. As per the doc, Begin() takes a flag to indicate whether you want to save the device's state and revert it at the end. Most of the samples that I have seen make use of a '0' as the effect save and restore flag. Does it save and restore all the states (shader, texture, render, transform state etc)? Thanks in advance KumGame

Share this post


Link to post
Share on other sites
Advertisement
I think 0 means save state, as there's special flags for not saving state. In Xna this is reversed and state is not saved by default.

Share this post


Link to post
Share on other sites
Thanks for the reply...

Just now I read the 0 means save and restore all states modified by the effect.

Enjoy,
KumGame07

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!