Effect State Save and Restore Flag = 0

Started by
1 comment, last by KumGame07 16 years, 12 months ago
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
Best Regards,KumGame07
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.
Thanks for the reply...

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

Enjoy,
KumGame07
Best Regards,KumGame07

This topic is closed to new replies.

Advertisement