refactor: move GpuEvaluatorFactory to OpenNest.Gpu project

GPU factory logic belongs with the GPU implementation, not the UI.
Changed from internal to public and updated namespace to OpenNest.Gpu.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 21:40:56 -05:00
parent 99edad4228
commit bc392b37dc
4 changed files with 5 additions and 3 deletions
@@ -3,11 +3,10 @@ using System.Diagnostics;
using ILGPU; using ILGPU;
using ILGPU.Runtime; using ILGPU.Runtime;
using OpenNest.Engine.BestFit; using OpenNest.Engine.BestFit;
using OpenNest.Gpu;
namespace OpenNest namespace OpenNest.Gpu
{ {
internal static class GpuEvaluatorFactory public static class GpuEvaluatorFactory
{ {
private static bool _probed; private static bool _probed;
private static bool _gpuAvailable; private static bool _gpuAvailable;
+1
View File
@@ -4,6 +4,7 @@ using System.Linq;
using System.Windows.Forms; using System.Windows.Forms;
using OpenNest.Controls; using OpenNest.Controls;
using OpenNest.Geometry; using OpenNest.Geometry;
using OpenNest.Gpu;
namespace OpenNest.Actions namespace OpenNest.Actions
{ {
+1
View File
@@ -1,6 +1,7 @@
using System.ComponentModel; using System.ComponentModel;
using System.Windows.Forms; using System.Windows.Forms;
using OpenNest.Controls; using OpenNest.Controls;
using OpenNest.Gpu;
namespace OpenNest.Actions namespace OpenNest.Actions
{ {
+1
View File
@@ -6,6 +6,7 @@ using System.Reflection;
using System.Windows.Forms; using System.Windows.Forms;
using OpenNest.Actions; using OpenNest.Actions;
using OpenNest.Collections; using OpenNest.Collections;
using OpenNest.Gpu;
using OpenNest.Geometry; using OpenNest.Geometry;
using OpenNest.IO; using OpenNest.IO;
using OpenNest.Properties; using OpenNest.Properties;