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

Started by
1 comment, last by MJP 12 years, 3 months ago
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

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.
No, it's not valid. If you turn on the debug output it will yell at you about it.

This topic is closed to new replies.

Advertisement