I do not know if it is possible.
This idea is make backward compatibility for effect/preset files.
Add some features to ReShade core.
- Add loaded value to constants if uniform value is obsoleted or it has readonly annotation.
(Maybe it requires to everytime reload the effects if a preset has obsoleted values.)
- Use migrate_from annotation when load value if expression has an obsoleted uniform and it loaded from a preset.
- Delete obsoleted value from preset's key/value pairs after loading effects.
// Suggestion 1
uniform int OldName <
ui_min = 1; ui_max = 8;
readonly = true;
> = 1;
// Suggestion 2
obsoleted uniform int OldName <
ui_min = 1; ui_max = 8;
> = 1;
uniform float NewName <
ui_min = 0.125; ui_max = 1.0;
#ifdef OldName
migrate_from = (float(OldName) / 8);
#endif
> = 0.125;