Skip to content

Commit

Permalink
do hat
Browse files Browse the repository at this point in the history
  • Loading branch information
RoseApollo committed Feb 13, 2023
1 parent 265827e commit a942e8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cupola/Cupola.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace Cupola
{
internal partial class Program
public partial class Cupola

{
public static void RunSingle(string imgDir, string outDir)
{
Expand Down
9 changes: 8 additions & 1 deletion Tranquility/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Cupola;
using System.IO;
using System;
using ComputeSharp;

namespace Tranquility
{
Expand All @@ -13,7 +14,8 @@ namespace Tranquility
public partial class MainWindow : Window
{
string[]? files;

ReadWriteTexture2D<Bgra32, float4>? finalImage;

public MainWindow()
{
InitializeComponent();
Expand Down Expand Up @@ -50,7 +52,12 @@ private void LoadFilesClick(object sender, RoutedEventArgs e)

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);
}
}
}

0 comments on commit a942e8a

Please sign in to comment.