Refactored and moved the SwapChain sample project

Also enabled the build in the CI
このコミットが含まれているのは:
Sergio Pedri committed 2021-02-24 20:09:24 +01:00
1 親 95f297fec0
コミット 3889061211
11ファイル変更
+18 -12

検索条件に一致するファイルはありません

+3
ファイルの表示
@@ -77,6 +77,9 @@ jobs:
- name: Build ComputeSharp.Benchmark.csproj
run: dotnet build samples\ComputeSharp.Benchmark\ComputeSharp.Benchmark.csproj -c Release
shell: cmd
- name: Build ComputeSharp.SwapChain.csproj
run: dotnet build samples\ComputeSharp.SwapChain\ComputeSharp.SwapChain.csproj -c Release
shell: cmd
# Buils the .msbuildproj project to generate the NuGet package.
# This workflow also uploads the resulting package as an artifact.
+1 -1
ファイルの表示
@@ -47,7 +47,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.Tests.Internal
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.Tests.NativeLibrariesResolver", "tests\ComputeSharp.Tests.NativeLibrariesResolver\ComputeSharp.Tests.NativeLibrariesResolver.csproj", "{BF52326F-E415-49E6-8595-62762216762B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputeSharp.Sample.SwapChain", "samples\ComputeSharp.Sample.SwapChain\ComputeSharp.Sample.SwapChain.csproj", "{E7C9247D-016B-4819-AF9F-0E9B3591E04B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.SwapChain", "samples\ComputeSharp.SwapChain\ComputeSharp.SwapChain.csproj", "{E7C9247D-016B-4819-AF9F-0E9B3591E04B}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
@@ -4,7 +4,7 @@ using ComputeSharp.Interop;
using TerraFX.Interop;
using FX = TerraFX.Interop.Windows;
namespace ComputeSharp.Sample.SwapChain.Backend
namespace ComputeSharp.SwapChain.Backend
{
internal sealed class SwapChainApplication<T> : Win32Application
where T : struct, IComputeShader
@@ -2,7 +2,7 @@
using System.Drawing;
using TerraFX.Interop;
namespace ComputeSharp.Sample.SwapChain.Backend
namespace ComputeSharp.SwapChain.Backend
{
/// <summary>
/// A class representing a simple Win32 application.
@@ -7,7 +7,7 @@ using System.Threading;
using TerraFX.Interop;
using FX = TerraFX.Interop.Windows;
namespace ComputeSharp.Sample.SwapChain.Backend
namespace ComputeSharp.SwapChain.Backend
{
/// <summary>
/// A helper class to manage the creation and execution of Win32 applications.
@@ -7,7 +7,10 @@
<ItemGroup>
<ProjectReference Include="..\..\src\ComputeSharp\ComputeSharp.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
PrivateAssets="contentfiles;build" />
</ItemGroup>
</Project>
@@ -1,8 +1,8 @@
using System;
using ComputeSharp.Sample.SwapChain.Backend;
using ComputeSharp.Sample.SwapChain.Shaders;
using ComputeSharp.SwapChain.Backend;
using ComputeSharp.SwapChain.Shaders;
namespace ComputeSharp.Sample.SwapChain
namespace ComputeSharp.SwapChain
{
class Program
{
@@ -1,4 +1,4 @@
namespace ComputeSharp.Sample.SwapChain.Shaders
namespace ComputeSharp.SwapChain.Shaders
{
/// <summary>
/// A shader creating an abstract and colorful animation.
@@ -1,4 +1,4 @@
namespace ComputeSharp.Sample.SwapChain.Shaders
namespace ComputeSharp.SwapChain.Shaders
{
/// <summary>
/// A shader creating a fractal tiling animation.
@@ -1,4 +1,4 @@
namespace ComputeSharp.Sample.SwapChain.Shaders
namespace ComputeSharp.SwapChain.Shaders
{
/// <summary>
/// A shader creating a flythrough in a Menger system.
@@ -1,4 +1,4 @@
namespace ComputeSharp.Sample.SwapChain.Shaders
namespace ComputeSharp.SwapChain.Shaders
{
/// <summary>
/// A shader creating an animated two-tiles Truchet arrangement.