On 10/10/2014 at 04:23, xxxxxxxx wrote:
I have been playing around a little and maybe I'm missing something here. But as far as I can see "Interactive Render Region" and "Render Region" work exactly the same as far as dimensions and coordinates are concerned. All you have to keep in mind is, that the interactive one, can also change its dimensions due to the quality slider (reducing the quality percentage, leads to smaller buffer, but all offsets are still correct).
So basically, you'd do as suggested, FrozenTarzan.
Check for RDATA_RENDERREGION, get the offsets (RDATA_RENDERREGION_LEFT,...) as needed and calculate your position and dimension taking pVpBuffer->GetBh()/GetBw() into account.
One thing to note, which might not be obvious:
RDATA_RENDERREGION_LEFT/_TOP/_RIGHT/_BOTTOM deliver offsets to the respective edge.
E.g. a pixel in the right/bottom corner would have these two as zero.
I hope this helped. If I missed anything, explaining the obvious, leaving out the actual problem, just let me know.