benilla-re systems structs docs

s_quarterTarget2

global · ffxeffects

Address
0xce8b04 · 28 bytes, up to 0xce8b1f
Type
FfxRenderTarget
Meaning
Holds the second quarter-size target descriptor, the Gauss4 horizontal output
Confidence
verified, proof one
Finding
ffxeffects/targets#render-target-allocation

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

0x6cdcb0 (ecx a descriptor, edx the wanted {w, h}, a flag on the stack) makes a target texture. In mode 0 each dimension is rounded up to a power of 2; each is then clamped to caps[0x60 + 4·mode] and to at least 8. When the allocated size differs from the descriptor's +4 and +8 it frees any old texture, creates a new one and clears it. It stores the wanted size at +0xc and +0x10, the allocated at +4 and +8, and 1/allocW, 1/allocH as floats at +0x14 and +0x18; +0 is the handle, and the descriptor is 7 dwords (0x1c bytes).

The derivation is in the doc.