diff --git a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj
index 7f7336e9..731b4f67 100644
--- a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj
+++ b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj
@@ -8,6 +8,16 @@
x86;x64;arm64
win10-x86;win10-x64;win10-arm64
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/MainWindow.xaml b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/MainWindow.xaml
index 83fd85bd..49afd327 100644
--- a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/MainWindow.xaml
+++ b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/MainWindow.xaml
@@ -2,12 +2,25 @@
x:Class="ComputeSharp.SwapChain.WinUI.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="using:ComputeSharp.SwapChain.WinUI"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:computesharp="using:ComputeSharp.WinUI"
mc:Ignorable="d">
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/MainWindow.xaml.cs b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/MainWindow.xaml.cs
index c022e316..b784c878 100644
--- a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/MainWindow.xaml.cs
+++ b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI/MainWindow.xaml.cs
@@ -1,4 +1,6 @@
-using Microsoft.UI.Xaml;
+using ComputeSharp.SwapChain.Shaders;
+using ComputeSharp.WinUI;
+using Microsoft.UI.Xaml;
namespace ComputeSharp.SwapChain.WinUI
{
@@ -12,9 +14,39 @@ namespace ComputeSharp.SwapChain.WinUI
this.InitializeComponent();
}
- private void myButton_Click(object sender, RoutedEventArgs e)
+ private void Colors_Click(object sender, RoutedEventArgs e)
{
- myButton.Content = "Clicked";
+ this.ShaderPanel.ShaderRunner = new ShaderRunner(static (texture, time) => new(texture, (float)time.TotalSeconds));
+ }
+
+ private void ExtrudedTruchet_Click(object sender, RoutedEventArgs e)
+ {
+ this.ShaderPanel.ShaderRunner = new ShaderRunner(static (texture, time) => new(texture, (float)time.TotalSeconds));
+ }
+
+ private void Tiles_Click(object sender, RoutedEventArgs e)
+ {
+ this.ShaderPanel.ShaderRunner = new ShaderRunner(static (texture, time) => new(texture, (float)time.TotalSeconds));
+ }
+
+ private void Journey_Click(object sender, RoutedEventArgs e)
+ {
+ this.ShaderPanel.ShaderRunner = new ShaderRunner(static (texture, time) => new(texture, (float)time.TotalSeconds));
+ }
+
+ private void Octagrams_Click(object sender, RoutedEventArgs e)
+ {
+ this.ShaderPanel.ShaderRunner = new ShaderRunner(static (texture, time) => new(texture, (float)time.TotalSeconds));
+ }
+
+ private void Clouds_Click(object sender, RoutedEventArgs e)
+ {
+ this.ShaderPanel.ShaderRunner = new ShaderRunner(static (texture, time) => new(texture, (float)time.TotalSeconds));
+ }
+
+ private void TiledTruched_Click(object sender, RoutedEventArgs e)
+ {
+ this.ShaderPanel.ShaderRunner = new ShaderRunner(static (texture, time) => new(texture, (float)time.TotalSeconds));
}
}
}