mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
settings_common: Document specializations
This commit is contained in:
parent
fc1bb93b01
commit
f84e7b4656
1 changed files with 9 additions and 8 deletions
|
@ -46,17 +46,18 @@ constexpr u8 SpecializationTypeMask = 0xf;
|
||||||
constexpr u8 SpecializationAttributeMask = 0xf0;
|
constexpr u8 SpecializationAttributeMask = 0xf0;
|
||||||
constexpr u8 SpecializationAttributeOffset = 4;
|
constexpr u8 SpecializationAttributeOffset = 4;
|
||||||
|
|
||||||
|
// Scalar and countable could have better names
|
||||||
enum Specialization : u8 {
|
enum Specialization : u8 {
|
||||||
Default = 0,
|
Default = 0,
|
||||||
Time = 1,
|
Time = 1, // Duration or specific moment in time
|
||||||
Hex = 2,
|
Hex = 2, // Hexadecimal number
|
||||||
List = 3,
|
List = 3, // Setting has specific members
|
||||||
RuntimeList = 4,
|
RuntimeList = 4, // Members of the list are determined during runtime
|
||||||
Scalar = 5,
|
Scalar = 5, // Values are continuous
|
||||||
Countable = 6,
|
Countable = 6, // Can be stepped through
|
||||||
Paired = 7,
|
Paired = 7, // Another setting is associated with this setting
|
||||||
|
|
||||||
Percentage = (1 << SpecializationAttributeOffset),
|
Percentage = (1 << SpecializationAttributeOffset), // Should be represented as a percentage
|
||||||
};
|
};
|
||||||
|
|
||||||
class BasicSetting;
|
class BasicSetting;
|
||||||
|
|
Loading…
Reference in a new issue