diff options
| author | Jacob Palecki <[email protected]> | 2021-04-04 23:18:23 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2021-04-04 23:18:23 -0700 |
| commit | 54a6f02eec23758b7f73fbf0affdedb6c4e046b7 (patch) | |
| tree | 647671b4bb74f840754671fa590a868120cddf9d /grapher | |
| parent | Fix most errors from wrapper rewrite (diff) | |
| download | rawaccel-54a6f02eec23758b7f73fbf0affdedb6c4e046b7.tar.xz rawaccel-54a6f02eec23758b7f73fbf0affdedb6c4e046b7.zip | |
Fix two more errors, add LUT layout
Diffstat (limited to 'grapher')
| -rw-r--r-- | grapher/Form1.cs | 4 | ||||
| -rw-r--r-- | grapher/Layouts/LUTLayout.cs | 27 |
2 files changed, 29 insertions, 2 deletions
diff --git a/grapher/Form1.cs b/grapher/Form1.cs index 120bced..12fc9ff 100644 --- a/grapher/Form1.cs +++ b/grapher/Form1.cs @@ -33,9 +33,9 @@ namespace grapher try { - driverVersion = VersionHelper.ValidateAndGetDriverVersion(assemVersion); + driverVersion = VersionHelper.ValidOrThrow(); } - catch (VersionException ex) + catch (InteropException ex) { MessageBox.Show(ex.Message); throw; diff --git a/grapher/Layouts/LUTLayout.cs b/grapher/Layouts/LUTLayout.cs new file mode 100644 index 0000000..97bfd60 --- /dev/null +++ b/grapher/Layouts/LUTLayout.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace grapher.Layouts +{ + public class LUTLayout : LayoutBase + { + public LUTLayout() + : base() + { + Name = "LookUpTable"; + Index = (int)AccelMode.lut; + + AccelLayout = new OptionLayout(false, Acceleration); + ScaleLayout = new OptionLayout(false, string.Empty); + CapLayout = new OptionLayout(false, Cap); + WeightLayout = new OptionLayout(false, Weight); + OffsetLayout = new OptionLayout(false, Offset); + LimitLayout = new OptionLayout(false, string.Empty); + ExponentLayout = new OptionLayout(false, Exponent); + MidpointLayout = new OptionLayout(false, string.Empty); + } + } +} |