Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 AverageJoeSSU   Members   -  Reputation: 550

Like
0Likes
Like

Posted 09 January 2012 - 12:05 PM

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?

------------------------------

redwoodpixel.com


Sponsor:

#2 japro   Members   -  Reputation: 887

Like
0Likes
Like

Posted 09 January 2012 - 12:21 PM

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.

#3 MJP   Moderators   -  Reputation: 12584

Like
0Likes
Like

Posted 09 January 2012 - 04:22 PM

No, it's not valid. If you turn on the debug output it will yell at you about it.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS