From 830dae2d93c56ec8c4dadece86a14d20058f70c7 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 19 Nov 2022 16:39:18 +0100 Subject: [PATCH] Enable TerracedHills shader in sample apps --- .../ViewModels/MainViewModel.cs | 3 ++- samples/ComputeSharp.SwapChain/Program.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/samples/ComputeSharp.SwapChain.Core.Shared/ViewModels/MainViewModel.cs b/samples/ComputeSharp.SwapChain.Core.Shared/ViewModels/MainViewModel.cs index ebcd4a34..0719ea3c 100644 --- a/samples/ComputeSharp.SwapChain.Core.Shared/ViewModels/MainViewModel.cs +++ b/samples/ComputeSharp.SwapChain.Core.Shared/ViewModels/MainViewModel.cs @@ -111,7 +111,8 @@ public sealed partial class MainViewModel : ObservableObject new(typeof(TwoTiledTruchet),new ShaderRunner(static time => new((float)time.TotalSeconds))), new(typeof(PyramidPattern),new ShaderRunner(static time => new((float)time.TotalSeconds))), new(typeof(TriangleGridContouring),new ShaderRunner(static time => new((float)time.TotalSeconds))), - new(typeof(ContouredLayers),new ContouredLayersRunner()) + new(typeof(ContouredLayers),new ContouredLayersRunner()), + new(typeof(TerracedHills),new ShaderRunner(static time => new((float)time.TotalSeconds))), }; private ShaderRunnerViewModel selectedComputeShader; diff --git a/samples/ComputeSharp.SwapChain/Program.cs b/samples/ComputeSharp.SwapChain/Program.cs index faf777c3..3d2330b6 100644 --- a/samples/ComputeSharp.SwapChain/Program.cs +++ b/samples/ComputeSharp.SwapChain/Program.cs @@ -29,7 +29,8 @@ class Program (nameof(ExtrudedTruchetPattern), new SwapChainApplication(static time => new((float)time.TotalSeconds))), (nameof(PyramidPattern), new SwapChainApplication(static time => new((float)time.TotalSeconds))), (nameof(TriangleGridContouring), new SwapChainApplication(static time => new((float)time.TotalSeconds))), - (nameof(ContouredLayers), new SwapChainApplication(static time => new((float)time.TotalSeconds, RustyMetal.Value))) + (nameof(ContouredLayers), new SwapChainApplication(static time => new((float)time.TotalSeconds, RustyMetal.Value))), + (nameof(TerracedHills), new SwapChainApplication(static time => new((float)time.TotalSeconds))) }; static void Main()