_xiaofang/xiaofang/Assets/Obi/Scripts/Common/Backends/Compute/ComputeBackend.cs

18 lines
404 B
C#
Raw Normal View History

2024-12-18 02:18:45 +08:00
namespace Obi
{
public class ComputeBackend : IObiBackend
{
#region Solver
public ISolverImpl CreateSolver(ObiSolver solver, int capacity)
{
return new ComputeSolverImpl(solver);
}
public void DestroySolver(ISolverImpl solver)
{
if (solver != null)
solver.Destroy();
}
#endregion
}
}