benilla-re systems structs docs

GetTargetMode

function · ffxeffects · orchestration

Address
0x6cdb10 · 45 bytes, up to 0x6cdb3c
Meaning
Returns 2 when ffxRectangle is set and the device takes rectangle textures, else 0
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.

Callers 2

Callees 1

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