From 8992a6c33dd842248253f9ffd00513356d366fd0 Mon Sep 17 00:00:00 2001 From: Samuele Lorefice Date: Mon, 7 Apr 2025 17:46:17 +0200 Subject: [PATCH] Added windows version of shell script to build configs --- .run/Run SDF Tool [8 pic].run.xml | 5 +++-- .run/Run SDF Tool [Debug, 8 pic].run.xml | 5 +++-- SDFMapCreator/SdfKernels.cs | 2 -- SDFMapCreator/copyImages.ps1 | 11 +++++++++++ 4 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 SDFMapCreator/copyImages.ps1 diff --git a/.run/Run SDF Tool [8 pic].run.xml b/.run/Run SDF Tool [8 pic].run.xml index c97a9fb..3837197 100644 --- a/.run/Run SDF Tool [8 pic].run.xml +++ b/.run/Run SDF Tool [8 pic].run.xml @@ -1,8 +1,8 @@ - \ No newline at end of file diff --git a/.run/Run SDF Tool [Debug, 8 pic].run.xml b/.run/Run SDF Tool [Debug, 8 pic].run.xml index 4a07326..a5bda4c 100644 --- a/.run/Run SDF Tool [Debug, 8 pic].run.xml +++ b/.run/Run SDF Tool [Debug, 8 pic].run.xml @@ -1,8 +1,8 @@ - \ No newline at end of file diff --git a/SDFMapCreator/SdfKernels.cs b/SDFMapCreator/SdfKernels.cs index d5a13ae..ce1a6cf 100644 --- a/SDFMapCreator/SdfKernels.cs +++ b/SDFMapCreator/SdfKernels.cs @@ -1,11 +1,9 @@ -using System; using System.Numerics; using ILGPU; using ILGPU.Runtime; using ILGPU.Runtime.CPU; using ILGPU.Runtime.Cuda; using ILGPU.Runtime.OpenCL; -using ILGPU.Algorithms; namespace SDFMapCreator; diff --git a/SDFMapCreator/copyImages.ps1 b/SDFMapCreator/copyImages.ps1 new file mode 100644 index 0000000..36b3d58 --- /dev/null +++ b/SDFMapCreator/copyImages.ps1 @@ -0,0 +1,11 @@ +if (Test-Path "./bin/Debug/net8.0/") +{ + echo "Copying images to Debug folder" + copy ./images/* "./bin/Debug/net8.0/" +} + +if(Test-Path "./bin/Release/net8.0/") +{ + echo "Copying images to Release folder" + copy ./images/* "./bin/Release/net8.0/" +} \ No newline at end of file