s_savedView
global · ffxeffects
- Address
0xce8a08· 64 bytes, up to0xce8a47- Type
float[16]- Meaning
- Holds the device view matrix saved by a pass and restored after it
- 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.