Jump to content

  • Log In with Google      Sign In   
  • Create Account

[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: 516

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: 11761

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