Jump to content
  • Advertisement
Sign in to follow this  
AverageJoeSSU

[d3d9] can you read/write to the same RTT in single shader pass?

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

i always thought this was forbidden, but a simple test i saw suggested otherwise....

get texture reference from RTT

set the texture and bind RTT to render.

I would think that this would totally blow up. no?

thoughts?

Share this post


Link to post
Share on other sites
Advertisement
I'd assume you just get undefined behavior. It can fail horribly and very likely doesn't what you want to do. Just because it doesn't crash hard doesn't mean it's ok to do it.

Share this post


Link to post
Share on other sites
No, it's not valid. If you turn on the debug output it will yell at you about it.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!