ffxeffects
| rows | named | verified | proof two | tested | |
|---|---|---|---|---|---|
| functions | 113 | 113 (100%) | 113 (100%) | 0 (0%) | 7 (6%) |
| globals | 51 | 51 (100%) | 48 (94%) | 0 (0%) | – |
| structs | 1 | 1 (100%) | 1 (100%) | 0 (0%) | – |
| fields | 7 | 7 (100%) | 7 (100%) | 0 (0%) | – |
| all | 172 | 172 (100%) | 169 (98%) | 0 (0%) | 7 (6%) |
Docs
ffxeffects: pass objects and effects
The objects that make an effect: the FFX::Pass base and its subclasses, the effects that own
lists of passes, the pass list container, the effects' start-up and shutdown and the bracket that runs the
current effect around the world paint.
ffxeffects: overview
The full-screen effects: the glow (with its underwater variant) and the death tint, drawn as a chain of passes between the world and the screen. The code only prepares each pass; the blur, glow and tint are the device's fragment programs.
It is one object file, 0x6ca9d0 through 0x6cdf20, which carries the source path
FFXEffects.cpp (0x86f1c4); the passes have no assertions, so the first reference to the path is
0x6cbed3. Its initializers are the twelve slots 0x82cdb4 to 0x82cde0. The classes are
FFX::Pass (the type tag .PAVPass@FFX@@, 0x86f228) and its subclasses, one per program:
FFXBox4, FFXGauss4, FFXGlow, FFXGlowWave and three death programs. The effect objects own
lists of passes; 0x6cd890 and 0x6cda70 bracket the world paint with the current effect.
The docs split by topic: objects (the pass and effect objects, their lists, start-up, shutdown and the bracket around the world paint), targets (the render targets, the pass draw state and the quad) and passes (the blurs, the glow combine and its underwater variant, the drunk byte readers and the death passes). This doc holds the object file and its static initializers.
ffxeffects: the passes
The passes themselves: the box and Gauss blurs, the glow combine and its underwater variant with the wave map, the readers of the drunk byte that feed the combine, and the death passes.
ffxeffects: render targets and the quad
The render targets the passes draw between and the quad every pass draws: their sizes and allocation, the draw state a pass sets up and the full-screen quad with its texture coordinates.
Closure
19 roots. A walk of direct calls and jumps from them reaches 58 of the 113 functions the system owns, and stops at 23 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.
Roots
- FFXInitialize ffxeffects
- FFXShutdown ffxeffects
- ConstructGlowEffect ffxeffects
- ConstructDeathEffect ffxeffects
- BeginCurrentFfx ffxeffects
- EndCurrentFfx ffxeffects
- SetCurrentFfx ffxeffects
- InitWaveMapFieldsThunk ffxeffects
- InitGlowWavePeriodsThunk ffxeffects
- InitGlowWaveScalesThunk ffxeffects
- InitScreenTargetThunk ffxeffects
- InitFullTargetsThunk ffxeffects
- InitHalfTargetsThunk ffxeffects
- InitQuarterTargetsThunk ffxeffects
- InitQuadPositionsThunk ffxeffects
- InitQuadOffsetsThunk ffxeffects
- InitStripDrawDescThunk ffxeffects
- InitSavedProjectionThunk ffxeffects
- InitSavedViewThunk ffxeffects
Boundary
- _atexit crt
- __ftol crt
- 0x589d30 gx
- GxMasterEnableSet gx
- GxDeviceCaps gx
- GxCapsDrawRect gx
- SetClearColorDevice gx
- 0x58a940 gx
- ClearDevice gx
- CGxTexFlags::CGxTexFlags gx
- GxTexCreate2D gx
- GxTexCreate gx
- GxTexDestroy gx
- 0x58ae00 gx
- SetDeviceViewport gx
- 0x58b2b0 gx
- 0x58b2e0 gx
- 0x58b3c0 gx
- CVar::Register cvar
- CVar::Lookup cvar
- SMemAlloc storm
- SMemReAlloc storm
- SMemFree storm
Functions 113
| address | name | class | confidence | test | closure |
|---|---|---|---|---|---|
0x6ca9d0 | ConstructBox4Pass | orchestration | verified, proof one | ✓ | |
0x6caa30 | DeleteBox4Pass | orchestration | verified, proof one | ||
0x6caa60 | DestroyBox4Pass | orchestration | verified, proof one | ||
0x6caa90 | FFX::Pass::DeletingDestructor | orchestration | verified, proof one | ||
0x6caac0 | Box4PassIsReady | orchestration | verified, proof one | ||
0x6caae0 | RenderBox4Pass | orchestration | verified, proof one | ||
0x6cac20 | Box4TapsExit | orchestration | verified, proof one | ||
0x6cac30 | ConstructGauss4Pass | orchestration | verified, proof one | ✓ | |
0x6cac90 | DeleteGauss4Pass | orchestration | verified, proof one | ||
0x6cacc0 | DestroyGauss4Pass | orchestration | verified, proof one | ||
0x6cacf0 | Gauss4PassIsReady | orchestration | verified, proof one | ||
0x6cad10 | RenderGauss4Pass | primitive | verified, proof one | ||
0x6caf40 | ConstructGlowPass | orchestration | verified, proof one | ✓ | |
0x6cafa0 | DeleteGlowPass | orchestration | verified, proof one | ||
0x6cafd0 | DestroyGlowPass | orchestration | verified, proof one | ||
0x6cb000 | GlowPassIsReady | orchestration | verified, proof one | ||
0x6cb020 | RenderGlowPass | primitive | verified, proof one | ✓ | |
0x6cb1f0 | ConstructGlowWavePass | orchestration | verified, proof one | ✓ | |
0x6cb290 | DeleteGlowWavePass | orchestration | verified, proof one | ||
0x6cb2c0 | DestroyGlowWavePass | orchestration | verified, proof one | ||
0x6cb2f0 | GlowWavePassIsReady | orchestration | verified, proof one | ||
0x6cb310 | RenderGlowWavePass | primitive | verified, proof one | ✓ | |
0x6cb7e0 | ConstructDeathPass | orchestration | verified, proof one | ✓ | |
0x6cb890 | DeleteDeathPass | orchestration | verified, proof one | ||
0x6cb8c0 | DestroyDeathPass | orchestration | verified, proof one | ||
0x6cb910 | DeathPassIsReady | orchestration | verified, proof one | ||
0x6cb930 | RenderDeathPass | primitive | verified, proof one | ✓ | |
0x6cba60 | ConstructDeathCombinerPass | orchestration | verified, proof one | ✓ | |
0x6cbaa0 | DeleteDeathCombinerPass | orchestration | verified, proof one | ||
0x6cbad0 | DestroyDeathCombinerPass | orchestration | verified, proof one | ||
0x6cbaf0 | DeathCombinerPassIsReady | orchestration | verified, proof one | ||
0x6cbb00 | RenderDeathCombinerPass | orchestration | verified, proof one | ||
0x6cbbc0 | InitWaveMapFieldsThunk | orchestration | verified, proof one | ✓ | |
0x6cbbd0 | InitWaveMapFields | orchestration | verified, proof one | ✓ | |
0x6cbc00 | RegisterWaveMapFieldsExit | orchestration | verified, proof one | ✓ | |
0x6cbc10 | ExitWaveMapFields | orchestration | verified, proof one | ||
0x6cbc30 | InitGlowWavePeriodsThunk | orchestration | verified, proof one | ✓ | |
0x6cbc40 | InitGlowWavePeriods | orchestration | verified, proof one | ✓ | |
0x6cbc60 | RegisterGlowWavePeriodsExit | orchestration | verified, proof one | ✓ | |
0x6cbc70 | ExitGlowWavePeriods | orchestration | verified, proof one | ||
0x6cbc90 | InitGlowWaveScalesThunk | orchestration | verified, proof one | ✓ | |
0x6cbca0 | InitGlowWaveScales | orchestration | verified, proof one | ✓ | |
0x6cbcc0 | RegisterGlowWaveScalesExit | orchestration | verified, proof one | ✓ | |
0x6cbcd0 | ExitGlowWaveScales | orchestration | verified, proof one | ||
0x6cbcf0 | ConstructWaveMapPass | orchestration | verified, proof one | ✓ | |
0x6cbe00 | DeleteWaveMapPass | orchestration | verified, proof one | ||
0x6cbe30 | DestroyWaveMapPass | orchestration | verified, proof one | ||
0x6cbea0 | WaveMapTexelCallback | primitive | verified, proof one | ✓ | |
0x6cc130 | ConstructGlowEffect | orchestration | verified, proof one | ✓ | |
0x6cc4a0 | DeleteGlowEffect | orchestration | verified, proof one | ||
0x6cc4d0 | DestroyGlowEffect | orchestration | verified, proof one | ||
0x6cc560 | DeleteFfxEffect | orchestration | verified, proof one | ||
0x6cc5a0 | GlowEffectIsReady | orchestration | verified, proof one | ||
0x6cc630 | RenderGlowEffect | orchestration | verified, proof one | ||
0x6cc690 | ConstructDeathEffect | orchestration | verified, proof one | ✓ | |
0x6cc8c0 | DeleteDeathEffect | orchestration | verified, proof one | ||
0x6cc8f0 | DestroyDeathEffect | orchestration | verified, proof one | ||
0x6cc940 | ReservePassList | primitive | verified, proof one | ✓ | |
0x6cca30 | PassListQuantum | primitive | verified, proof one | ✓ | |
0x6cca70 | AlignUpToQuantum | primitive | verified, proof one | ✓ | |
0x6cca90 | SetPassListCapacity | host | verified, proof one | ✓ | |
0x6ccb20 | InitScreenTargetThunk | orchestration | verified, proof one | ✓ | |
0x6ccb30 | InitScreenTarget | orchestration | verified, proof one | ✓ | |
0x6ccb60 | RegisterScreenTargetExit | orchestration | verified, proof one | ✓ | |
0x6ccb70 | ExitScreenTarget | orchestration | verified, proof one | ||
0x6ccb90 | InitFullTargetsThunk | orchestration | verified, proof one | ✓ | |
0x6ccba0 | InitFullTargets | orchestration | verified, proof one | ✓ | |
0x6ccbd0 | RegisterFullTargetsExit | orchestration | verified, proof one | ✓ | |
0x6ccbe0 | ExitFullTargets | orchestration | verified, proof one | ||
0x6ccc00 | InitHalfTargetsThunk | orchestration | verified, proof one | ✓ | |
0x6ccc10 | InitHalfTargets | orchestration | verified, proof one | ✓ | |
0x6ccc40 | RegisterHalfTargetsExit | orchestration | verified, proof one | ✓ | |
0x6ccc50 | ExitHalfTargets | orchestration | verified, proof one | ||
0x6ccc70 | InitQuarterTargetsThunk | orchestration | verified, proof one | ✓ | |
0x6ccc80 | InitQuarterTargets | orchestration | verified, proof one | ✓ | |
0x6cccb0 | RegisterQuarterTargetsExit | orchestration | verified, proof one | ✓ | |
0x6cccc0 | ExitQuarterTargets | orchestration | verified, proof one | ||
0x6ccce0 | InitQuadPositionsThunk | orchestration | verified, proof one | ✓ | |
0x6cccf0 | InitQuadPositions | orchestration | verified, proof one | ✓ | |
0x6ccd10 | RegisterQuadPositionsExit | orchestration | verified, proof one | ✓ | |
0x6ccd20 | ExitQuadPositions | orchestration | verified, proof one | ||
0x6ccd40 | InitQuadOffsetsThunk | orchestration | verified, proof one | ✓ | |
0x6ccd50 | InitQuadOffsets | orchestration | verified, proof one | ✓ | |
0x6ccd70 | RegisterQuadOffsetsExit | orchestration | verified, proof one | ✓ | |
0x6ccd80 | ExitQuadOffsets | orchestration | verified, proof one | ||
0x6ccda0 | InitStripDrawDescThunk | orchestration | verified, proof one | ✓ | |
0x6ccdb0 | InitStripDrawDesc | orchestration | verified, proof one | ✓ | |
0x6ccde0 | InitSavedProjectionThunk | orchestration | verified, proof one | ✓ | |
0x6ccdf0 | InitSavedProjection | orchestration | verified, proof one | ✓ | |
0x6ccea0 | RegisterSavedProjectionExit | orchestration | verified, proof one | ✓ | |
0x6cceb0 | ExitSavedProjection | orchestration | verified, proof one | ||
0x6cced0 | InitSavedViewThunk | orchestration | verified, proof one | ✓ | |
0x6ccee0 | InitSavedView | orchestration | verified, proof one | ✓ | |
0x6ccf90 | RegisterSavedViewExit | orchestration | verified, proof one | ✓ | |
0x6ccfa0 | ExitSavedView | orchestration | verified, proof one | ||
0x6ccfc0 | FFXInitialize | orchestration | verified, proof one | ✓ | |
0x6cd1d0 | FFXShutdown | orchestration | verified, proof one | ✓ | |
0x6cd390 | ResetTargetDescriptor | orchestration | verified, proof one | ✓ | |
0x6cd3c0 | BeginPassTarget | primitive | verified, proof one | ||
0x6cd580 | BuildFullScreenQuad | primitive | verified, proof one | ✓ | |
0x6cd750 | BuildQuadVertices | primitive | verified, proof one | ✓ | |
0x6cd810 | SetStripIndices | orchestration | verified, proof one | ||
0x6cd840 | EndPassTarget | orchestration | verified, proof one | ||
0x6cd890 | BeginCurrentFfx | primitive | verified, proof one | ✓ | |
0x6cda70 | EndCurrentFfx | orchestration | verified, proof one | ✓ | |
0x6cdb10 | GetTargetMode | orchestration | verified, proof one | ✓ | |
0x6cdb40 | ComputeTargetSizes | primitive | verified, proof one | ✓ | ✓ |
0x6cdcb0 | AllocateTarget | primitive | verified, proof one | ✓ | |
0x6cde30 | FfxCVarCallback | orchestration | verified, proof one | ||
0x6cde60 | SetCurrentFfx | orchestration | verified, proof one | ✓ | |
0x6cde70 | FFX::Pass::Pass | orchestration | verified, proof one | ✓ | |
0x6cded0 | EffectIsReady | orchestration | verified, proof one | ||
0x6cdf20 | RenderEffect | orchestration | verified, proof one |
Globals 51
| address | name | type | confidence |
|---|---|---|---|
0x80c488 | s_drunkEffectThreshold | const float | verified, proof one |
0x811310 | s_maxSignedByte | float | verified, proof one |
0x81147c | s_ffxThree | float | verified, proof one |
0x811480 | s_box4PassVtable | void *[3] | verified, proof one |
0x81148c | FFX::Pass::vftable | void *[3] | verified, proof one |
0x811498 | s_gauss4PassVtable | void *[3] | verified, proof one |
0x8114a4 | s_glowPassVtable | void *[3] | verified, proof one |
0x8114b4 | s_glowWavePassVtable | void *[3] | verified, proof one |
0x8114c0 | s_deathPassVtable | void *[3] | verified, proof one |
0x8114cc | s_deathCombinerPassVtable | void *[3] | verified, proof one |
0x8114d8 | s_waveMapPassVtable | void *[3] | verified, proof one |
0x8114e4 | s_glowEffectVtable | void *[3] | verified, proof one |
0x8114f0 | s_ffxEffectVtable | void *[3] | verified, proof one |
0x8114fc | s_deathEffectVtable | void *[3] | verified, proof one |
0x86f1c4 | s_pathFfxEffects | char[60] | verified, proof one |
0x86f200 | s_textFfxGlow | char[8] | inferred |
0x86f228 | s_tagFfxPass | char[15] | verified, proof one |
0x86f238 | s_textFfxDeath | char[9] | inferred |
0x86f260 | s_stripIndices | uint16_t[4] | verified, proof one |
0x86f268 | s_one | float | verified, proof one |
0x86f2ac | s_textFfx | char[4] | inferred |
0xce898c | s_waveMapBuffer | void * | verified, proof one |
0xce8994 | s_waveMapFormat | uint32_t | verified, proof one |
0xce8998 | s_waveMapUsers | uint32_t | verified, proof one |
0xce899c | s_waveMapExitFlags | uint8_t | verified, proof one |
0xce89a0 | s_waveMapTarget | FfxRenderTarget | verified, proof one |
0xce89bc | s_glowWaveScaleX | float | verified, proof one |
0xce89c0 | s_glowWaveScaleY | float | verified, proof one |
0xce89c4 | s_glowWavePeriodA | int32_t | verified, proof one |
0xce89c8 | s_glowWavePeriodB | int32_t | verified, proof one |
0xce89cc | s_box4Taps | float[8] | verified, proof one |
0xce89ec | s_box4TapsFlags | uint8_t | verified, proof one |
0xce89f8 | s_ffxRectangleMode | uint8_t | verified, proof one |
0xce89fc | s_gxMultisampleVar | void * | verified, proof one |
0xce8a00 | s_ffxRectangleVar | void * | verified, proof one |
0xce8a04 | s_ffxVar | void * | verified, proof one |
0xce8a08 | s_savedView | float[16] | verified, proof one |
0xce8a48 | s_savedProjection | float[16] | verified, proof one |
0xce8a88 | s_stripDrawDesc | uint32_t[4] | verified, proof one |
0xce8a98 | s_quadOffsets | float[8] | verified, proof one |
0xce8ab8 | s_quadPositions | float[12] | verified, proof one |
0xce8ae8 | s_quarterTarget | FfxRenderTarget | verified, proof one |
0xce8b04 | s_quarterTarget2 | FfxRenderTarget | verified, proof one |
0xce8b20 | s_halfTarget | FfxRenderTarget | verified, proof one |
0xce8b3c | s_halfTarget2 | FfxRenderTarget | verified, proof one |
0xce8b58 | s_targetExitFlags | uint8_t | verified, proof one |
0xce8b5c | s_fullTarget | FfxRenderTarget | verified, proof one |
0xce8b78 | s_fullTarget2 | FfxRenderTarget | verified, proof one |
0xce8b94 | s_screenTargetExitFlags | uint8_t | verified, proof one |
0xce8b98 | s_screenTarget | FfxRenderTarget | verified, proof one |
0xce8bb4 | s_currentFfx | void * | verified, proof one |