benilla-re systems structs docs

s_screenTarget

global · ffxeffects

Address
0xce8b98 · 28 bytes, up to 0xce8bb3
Type
FfxRenderTarget
Meaning
Holds the screen descriptor: handle 0, the window size and its reciprocals
Confidence
verified, proof one
Finding
ffxeffects/targets#render-target-sizes

Finding: Render target sizes in ffxeffects: render targets and the quad

0x6cdb40 sizes the targets from the window rectangle. With w and h the __ftol of its extents, it stores them and 1/w, 1/h (rounded to float) in the screen descriptor 0xce8b98. With m the maximum texture size of the mode 0x6cdb10 gives (caps[0x60 + 4·mode]), it allocates the full target at max(8, min(w, m)) × max(8, min(h, m)), then the half (/2, toward zero) and quarter (/4, toward zero) of that size. 0x6cdb10 returns 2 when ffxRectangle is nonzero, caps+0x58 is nonzero and caps+0x5c is 0, else 0.

The derivation is in the doc.