Added unit test for ExtrudedTruchetPattern shader

このコミットが含まれているのは:
Sergio Pedri committed 2021-03-16 17:30:05 +01:00
1 親 090984d052
コミット 4583f7dc1a
3ファイル変更
+11

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

バイナリファイルは表示されません。

変更後

幅:  |  高さ:  |  サイズ: 1.1 MiB

+4
ファイルの表示
@@ -28,6 +28,7 @@
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Processors\HlslGaussianBlurProcessor.cs" Link="Imaging\Processors\HlslGaussianBlurProcessor.cs" />
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Processors\HlslGaussianBlurProcessor{TPixel}.cs" Link="Imaging\Processors\HlslGaussianBlurProcessor{TPixel}.cs" />
<Compile Include="..\..\samples\ComputeSharp.SwapChain\Shaders\ColorfulInfinity.cs" Link="Shaders\ColorfulInfinity.cs" />
<Compile Include="..\..\samples\ComputeSharp.SwapChain\Shaders\ExtrudedTruchetPattern.cs" Link="Shaders\ExtrudedTruchetPattern.cs" />
<Compile Include="..\..\samples\ComputeSharp.SwapChain\Shaders\FractalTiling.cs" Link="Shaders\FractalTiling.cs" />
<Compile Include="..\..\samples\ComputeSharp.SwapChain\Shaders\MengerJourney.cs" Link="Shaders\MengerJourney.cs" />
<Compile Include="..\..\samples\ComputeSharp.SwapChain\Shaders\TwoTiledTruchet.cs" Link="Shaders\TwoTiledTruchet.cs" />
@@ -43,6 +44,9 @@
<None Update="Assets\ColorfulInfinity.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Assets\ExtrudedTruchetPattern.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Assets\FractalTiling.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
+7
ファイルの表示
@@ -58,6 +58,13 @@ namespace ComputeSharp.Tests
RunAndCompareShader(device, static texture => new ProteanClouds(texture, 0), 0.0000004f);
}
[CombinatorialTestMethod]
[AllDevices]
public void ExtrudedTruchetPattern(Device device)
{
RunAndCompareShader(device, static texture => new ExtrudedTruchetPattern(texture, 0), 0.00011f);
}
/// <summary>
/// Executes a given test for a specified shader.
/// </summary>