do hat
This commit is contained in:
parent
265827e37a
commit
a942e8a3bb
@ -2,7 +2,8 @@
|
||||
|
||||
namespace Cupola
|
||||
{
|
||||
internal partial class Program
|
||||
public partial class Cupola
|
||||
|
||||
{
|
||||
public static void RunSingle(string imgDir, string outDir)
|
||||
{
|
||||
|
@ -4,6 +4,7 @@ using WinRT;
|
||||
using Cupola;
|
||||
using System.IO;
|
||||
using System;
|
||||
using ComputeSharp;
|
||||
|
||||
namespace Tranquility
|
||||
{
|
||||
@ -13,6 +14,7 @@ namespace Tranquility
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
string[]? files;
|
||||
ReadWriteTexture2D<Bgra32, float4>? finalImage;
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user