s_saturationWeights
global · ui
- Address
0x818878· 12 bytes, up to0x818883- Type
const float[3]- Meaning
- Holds 0.7154, 0.0721 and 0.2125 that the x87 colour saturation routine 0x74d794 multiplies green, blue and red by
- Confidence
- verified, proof one
- Finding
- ui/texture#the-saturation-weights-in-the-exe
Finding: The saturation weights in the exe in ui: texture colour and drawing
The executable holds Rec.709-style luminance weights, 0.2125, 0.7154 and 0.0721, but only D3DX's colour saturation code reads them. The texture submit sets no shader constant, so a desaturated quad takes its weights from the shader file.
The derivation is in the doc.