PostProcessing/FX: Preserve option declaration order

This commit is contained in:
Stenzek
2024-07-26 15:29:49 +10:00
parent bf1b023f12
commit 3282366ea7
2 changed files with 12 additions and 6 deletions

View File

@ -54,12 +54,14 @@ public:
u32 target_height) = 0;
protected:
using OptionList = std::vector<ShaderOption>;
static void ParseKeyValue(std::string_view line, std::string_view* key, std::string_view* value);
virtual void OnOptionChanged(const ShaderOption& option);
std::string m_name;
std::vector<ShaderOption> m_options;
OptionList m_options;
};
} // namespace PostProcessing