summaryrefslogtreecommitdiffstats
path: root/src/common/settings_common.h
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-09-13 19:31:46 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-09-13 19:36:25 +0200
commit0098ecb6090b767f13683136c28fee97b8b127c7 (patch)
tree33545276b9a19d2e503ae5effd49cdfa737ecc80 /src/common/settings_common.h
parentandroid/config: Remove uncaught usage of stoul (diff)
downloadyuzu-0098ecb6090b767f13683136c28fee97b8b127c7.tar
yuzu-0098ecb6090b767f13683136c28fee97b8b127c7.tar.gz
yuzu-0098ecb6090b767f13683136c28fee97b8b127c7.tar.bz2
yuzu-0098ecb6090b767f13683136c28fee97b8b127c7.tar.lz
yuzu-0098ecb6090b767f13683136c28fee97b8b127c7.tar.xz
yuzu-0098ecb6090b767f13683136c28fee97b8b127c7.tar.zst
yuzu-0098ecb6090b767f13683136c28fee97b8b127c7.zip
Diffstat (limited to '')
-rw-r--r--src/common/settings_common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index 5b170dfd5..067234aab 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -225,6 +225,16 @@ public:
*/
[[nodiscard]] virtual constexpr u32 EnumIndex() const = 0;
+ /**
+ * @returns True if the underlying type is a floating point storage
+ */
+ [[nodiscard]] virtual constexpr bool IsFloatingPoint() const = 0;
+
+ /**
+ * @returns True if the underlying type is a integer storage
+ */
+ [[nodiscard]] virtual constexpr bool IsIntegral() const = 0;
+
/*
* Switchable settings
*/