EndPassTarget
function · ffxeffects · orchestration
- Address
0x6cd840· 73 bytes, up to0x6cd888- Meaning
- Restores the saved view and projection, rebinds the screen and sets the whole viewport
- Confidence
- verified, proof one
- Finding
- ffxeffects/targets#pass-target-and-draw-state
Finding: Pass target and draw state in ffxeffects: render targets and the quad
0x6cd3c0 (ecx a target descriptor) prepares a pass: it saves the device's projection (0x58b090)
in 0xce8a48 and its view (0x58b0b0) in 0xce8a08, installs the orthographic matrix (0, w, 0, h, −1, 1) of the target's +0xc and +0x10 and an identity view, clears the render states 0x14,
0xe, 0x10, 0x12 and 0xf, binds the target, and sets the viewport to (0, w/allocW, 0, h/allocH, 0, 1). 0x6cd840 restores the saved matrices, rebinds the screen and sets the viewport (0, 1, 0, 1, 0, 1). 0x6cd810 builds a 4-index buffer from the strip order 0, 3, 1, 2 (0x86f260) and passes
it to the device.
The derivation is in the doc.
Callers 6
- RenderBox4Pass ffxeffects
- RenderGauss4Pass ffxeffects
- RenderGlowPass ffxeffects
- RenderGlowWavePass ffxeffects
- RenderDeathPass ffxeffects
- RenderDeathCombinerPass ffxeffects
Callees 6
- 0x589d30 gx
- GxRsPop gx
- SetDeviceViewport gx
- SetDeviceProjection gx
- SetDeviceView gx
- 0x58b220 gx
Calls and jumps by a bare address, from tables/calls.tsv.