benilla-re systems structs docs

BuildFullScreenQuad

function · ffxeffects · primitive

Address
0x6cd580 · 455 bytes, up to 0x6cd746
Meaning
Writes the four positions and four UV offsets of a full-screen quad of a target
Confidence
verified, proof one
Finding
ffxeffects/targets#full-screen-quad
Test
ffxeffects::ffx_fullscreen_quad_difftest

Finding: Full-screen quad in ffxeffects: render targets and the quad

0x6cd580 (ecx the destination {w, h}, edx the source's used {w, h}; the source's allocated {w, h}, a position array, a UV array and a flag byte stacked; ret 0x10) writes a quad. Positions are (x0, y0), (x0, y1), (x1, y1), (x1, y0), z 0: (0, 0) to (w, h) when the device word +0x1fc is nonzero, else (0.5, −0.5) to (w + 0.5, h − 0.5); with the flag byte set and gxMultisample 2 or more, y0 = h + 0.5 and y1 = 0.5. The UV pairs are (hu, V), (hu, hv), (U, hv), (U, V), with U = (sw + 0.5)/allocW, V = (sh + 0.5)/allocH and hu, hv half a texel.

The derivation is in the doc.

Callers 6

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.