settings: Give indices to enums

This commit is contained in:
lat9nq 2023-06-21 21:41:06 -04:00
parent ecc1feff64
commit e7f01128f1
3 changed files with 36 additions and 6 deletions

View file

@ -220,6 +220,11 @@ public:
*/
[[nodiscard]] virtual constexpr bool Ranged() const = 0;
/**
* @returns The index of the enum if the underlying setting type is an enum, else max of u32.
*/
[[nodiscard]] virtual constexpr u32 EnumIndex() const = 0;
/*
* Switchable settings
*/