Added TriangleGridContouring sample shader

Ported from https://www.shadertoy.com/view/WtfGDX
このコミットが含まれているのは:
Sergio Pedri committed 2021-05-04 15:58:05 +02:00
1 親 2e26b75f2f
コミット 1dc33752f5
5ファイル変更
+299 -1

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

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

変更後

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

+4
ファイルの表示
@@ -35,6 +35,7 @@
<Compile Include="..\..\samples\ComputeSharp.SwapChain\Shaders\Octagrams.cs" Link="Shaders\Octagrams.cs" />
<Compile Include="..\..\samples\ComputeSharp.SwapChain\Shaders\ProteanClouds.cs" Link="Shaders\ProteanClouds.cs" />
<Compile Include="..\..\samples\ComputeSharp.SwapChain\Shaders\PyramidPattern.cs" Link="Shaders\PyramidPattern.cs" />
<Compile Include="..\..\samples\ComputeSharp.SwapChain\Shaders\TriangleGridContouring.cs" Link="Shaders\TriangleGridContouring.cs" />
</ItemGroup>
<ItemGroup>
@@ -66,6 +67,9 @@
<None Include="Assets\PyramidPattern.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Assets\TriangleGridContouring.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
+7
ファイルの表示
@@ -72,6 +72,13 @@ namespace ComputeSharp.Tests
RunAndCompareShader(device, static texture => new PyramidPattern(texture, 0), 0.00021f);
}
[CombinatorialTestMethod]
[AllDevices]
public void TriangleGridContouring(Device device)
{
RunAndCompareShader(device, static texture => new TriangleGridContouring(texture, 0), 0.0006f);
}
/// <summary>
/// Executes a given test for a specified shader.
/// </summary>