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
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | uint32_t | m_handle | Holds the target texture handle, 0 for the screen | verified, proof one | ffxeffects/targets#render-target-allocation |
0x0004 | 4 | int32_t | m_allocWidth | Holds the allocated texture width | verified, proof one | ffxeffects/targets#render-target-allocation |
0x0008 | 4 | int32_t | m_allocHeight | Holds the allocated texture height | verified, proof one | ffxeffects/targets#render-target-allocation |
0x000c | 4 | int32_t | m_width | Holds the wanted width | verified, proof one | ffxeffects/targets#render-target-allocation |
0x0010 | 4 | int32_t | m_height | Holds the wanted height | verified, proof one | ffxeffects/targets#render-target-allocation |
0x0014 | 4 | float | m_invAllocWidth | Holds 1/allocWidth as a float | verified, proof one | ffxeffects/targets#render-target-allocation |
0x0018 | 4 | float | m_invAllocHeight | Holds 1/allocHeight as a float | verified, proof one | ffxeffects/targets#render-target-allocation |
Globals of this type
0xce89a0s_waveMapTarget0xce8ae8s_quarterTarget0xce8b04s_quarterTarget20xce8b20s_halfTarget0xce8b3cs_halfTarget20xce8b5cs_fullTarget0xce8b78s_fullTarget20xce8b98s_screenTarget