Jump to content
  • Advertisement
Sign in to follow this  

Differences in settting render state

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

Is there a difference between calling setrenderstate, and just setting them in the technique block of an effect? Also, is SetTransform exclusive to fixed-function rendering (never did much fixed-function stuff, started on shaders). Is there an easy way to determine if a function is meant for fixed-function or not, or is it just sort of a common sense thing?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Unfadable
Is there a difference between calling setrenderstate, and just setting them in the technique block of an effect?
No, they are functionally the same thing.

You might be able to get better performance by manually managing them all app-side by re-ordering changes and eliminating redundant calls, but that would probably be more hassle than its worth.

Quote:
Original post by Unfadable
Also, is SetTransform exclusive to fixed-function rendering (never did much fixed-function stuff, started on shaders).
Yes, its for fixed function only.

Quote:
Original post by Unfadable
Is there an easy way to determine if a function is meant for fixed-function or not, or is it just sort of a common sense thing?
Not really... its one of the unfortunate side effects of supporting FF and PP in the same API. There is some cross-over that applies to both, and some (such as lighting) that only applies to FF.

The problem goes away in D3D10, which makes it so much cleaner and nicer to program with [grin]

hth
Jack

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!