benilla-re systems structs docs

FfxRenderTarget

struct · ffxeffects · 28 bytes

Meaning
Holds a full-screen effect target: handle, allocated and wanted size and the reciprocals of the allocation
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.

Fields 7

offsetsizetypenamemeaningconfidencefinding
0x00004uint32_tm_handleHolds the target texture handle, 0 for the screenverified, proof oneffxeffects/targets#render-target-allocation
0x00044int32_tm_allocWidthHolds the allocated texture widthverified, proof oneffxeffects/targets#render-target-allocation
0x00084int32_tm_allocHeightHolds the allocated texture heightverified, proof oneffxeffects/targets#render-target-allocation
0x000c4int32_tm_widthHolds the wanted widthverified, proof oneffxeffects/targets#render-target-allocation
0x00104int32_tm_heightHolds the wanted heightverified, proof oneffxeffects/targets#render-target-allocation
0x00144floatm_invAllocWidthHolds 1/allocWidth as a floatverified, proof oneffxeffects/targets#render-target-allocation
0x00184floatm_invAllocHeightHolds 1/allocHeight as a floatverified, proof oneffxeffects/targets#render-target-allocation

Globals of this type