s_waveMapFormat
global · ffxeffects
- Address
0xce8994· 4 bytes, up to0xce8997- Type
uint32_t- Meaning
- Holds the wave map format, 8 or 1, picked by the capability word
- Confidence
- verified, proof one
- Finding
- ffxeffects/passes#wave-map-table
Finding: Wave map table in ffxeffects: the passes
0x6cbea0 is the data callback of the 128 by 128 wave map 0xce89a0, created by the pass base
0x6cbcf0 when the first such pass is built (a count in 0xce8998). With ecx 0 it allocates
texels·16384 bytes and fills them; with 1 it stores the pitch and the address; with 2 it frees the
buffer. For format 8 a texel is two signed bytes, low trunc(clamp(128·sin(2πx/128), −128, 127))
and high the same of y. For format 1 a texel is the dword (cx << 16) | (cy << 8) with c = trunc(clamp((sin·0.5 + 0.5)·255, 0, 255)) of x and y. The format is 1 when caps+0x98 is 0xa, 3
or 4, else 8.
The derivation is in the doc.