From bc26550bd0b949aac943db40a41e0375e122b87b Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 12 Nov 2022 03:15:50 +0100 Subject: [PATCH] Change CLI sample to be a WinExe --- .github/workflows/dotnet.yml | 2 ++ .../ComputeSharp.SwapChain.Cli.csproj | 9 ++++++++- .../Backend/SwapChainApplication{T}.cs | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5b5b67c1..967121fc 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -121,6 +121,8 @@ jobs: matrix: framework: [net7.0, net6.0, netcoreapp3.1, net472] runs-on: windows-2022 + env: + CI_RUNNER_SAMPLES_INTEGRATION_TESTS: true steps: - name: Git checkout uses: actions/checkout@v3 diff --git a/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj b/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj index 15c44aed..bacfeee1 100644 --- a/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj +++ b/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj @@ -1,7 +1,14 @@ - Exe + + + Exe + WinExe net7.0 x64;ARM64 $(DefineConstants);SAMPLE_APP diff --git a/samples/ComputeSharp.SwapChain/Backend/SwapChainApplication{T}.cs b/samples/ComputeSharp.SwapChain/Backend/SwapChainApplication{T}.cs index 9affa55c..41713dbe 100644 --- a/samples/ComputeSharp.SwapChain/Backend/SwapChainApplication{T}.cs +++ b/samples/ComputeSharp.SwapChain/Backend/SwapChainApplication{T}.cs @@ -287,6 +287,7 @@ internal sealed class SwapChainApplication : Win32Application // Execute the command list to perform the copy this.d3D12CommandQueue.Get()->ExecuteCommandLists(1, (ID3D12CommandList**)this.d3D12GraphicsCommandList.GetAddressOf()); + _ = this.d3D12CommandQueue.Get()->Signal(this.d3D12Fence.Get(), this.nextD3D12FenceValue); // Present the new frame