summaryrefslogtreecommitdiff
path: root/common/accel-union.hpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-04-06 01:21:42 -0400
committera1xd <[email protected]>2021-04-06 01:21:42 -0400
commit7c1f14845bc948e9ea25908e96099203d9433a69 (patch)
treeeadfae6ec0a775a35c29807bde3c20be8160e034 /common/accel-union.hpp
parentLUT text layout (diff)
downloadrawaccel-7c1f14845bc948e9ea25908e96099203d9433a69.tar.xz
rawaccel-7c1f14845bc948e9ea25908e96099203d9433a69.zip
update wrapper + writer to handle lut
grapher is building but applying options still broken for the most part
Diffstat (limited to 'common/accel-union.hpp')
-rw-r--r--common/accel-union.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/accel-union.hpp b/common/accel-union.hpp
index 3d41a18..7f3d5d5 100644
--- a/common/accel-union.hpp
+++ b/common/accel-union.hpp
@@ -22,6 +22,7 @@ namespace rawaccel {
motivity_gain,
lut_log,
lut_lin,
+ lut_arb,
noaccel
};
@@ -31,6 +32,7 @@ namespace rawaccel {
switch (lut_mode) {
case table_mode::binlog: return internal_mode::lut_log;
case table_mode::linear: return internal_mode::lut_lin;
+ case table_mode::arbitrary: return internal_mode::lut_arb;
default: return internal_mode::noaccel;
}
}
@@ -64,6 +66,7 @@ namespace rawaccel {
case internal_mode::motivity_gain: return vis(u.motivity_g);
case internal_mode::lut_log: return vis(u.log_lut);
case internal_mode::lut_lin: return vis(u.lin_lut);
+ case internal_mode::lut_arb:
default: return vis(u.noaccel);
}
}