This commit is contained in:
AUnicornWithNoLife 2023-02-13 10:10:38 +00:00
parent 265827e37a
commit a942e8a3bb
2 changed files with 10 additions and 2 deletions

View File

@ -2,7 +2,8 @@
namespace Cupola
{
internal partial class Program
public partial class Cupola
{
public static void RunSingle(string imgDir, string outDir)
{

View File

@ -4,6 +4,7 @@ using WinRT;
using Cupola;
using System.IO;
using System;
using ComputeSharp;
namespace Tranquility
{
@ -13,7 +14,8 @@ namespace Tranquility
public partial class MainWindow : Window
{
string[]? files;
ReadWriteTexture2D<Bgra32, float4>? finalImage;
public MainWindow()
{
InitializeComponent();
@ -50,7 +52,12 @@ namespace Tranquility
private void Run(object sender, RoutedEventArgs e)
{
if (files == null)
throw new Exception("Please select files before running");
ReadWriteTexture2D<Bgra32, float4>[] images = Cupola.Cupola.Load(files);
finalImage = Cupola.Cupola.RunSingle(images);
}
}
}