Skip to content

Commit

Permalink
Update 'TerracedHills' test image for D2D
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jun 5, 2024
1 parent 9aa8395 commit b4c5b4d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<None Update="Assets\ContouredLayers.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\ComputeSharp.Tests\Assets\TerracedHills.png" Link="Assets\TerracedHills.png">
<None Include="Assets\TerracedHills.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Assets\RadialFadeOut.png">
Expand Down
2 changes: 1 addition & 1 deletion tests/ComputeSharp.D2D1.Tests/ShadersTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public unsafe void ContouredLayers()
[TestMethod]
public void TerracedHills()
{
RunTest<TerracedHills>(0.000026f);
RunTest<TerracedHills>(0.000027f);
}

private static void RunTest<T>(float threshold = 0.00001f)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<Link>Assets\Shaders\ProteanClouds.png</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\ComputeSharp.Tests\Assets\TerracedHills.png">
<Content Include="..\ComputeSharp.D2D1.Tests\Assets\TerracedHills.png">
<Link>Assets\Shaders\TerracedHills.png</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
2 changes: 1 addition & 1 deletion tests/ComputeSharp.D2D1.WinUI.Tests/Tests/ShadersTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async Task ProteanClouds(WrapperType wrapperType)
[DataRow(WrapperType.CanvasEffect)]
public async Task TerracedHills(WrapperType wrapperType)
{
await RunTestAsync<TerracedHills>(wrapperType, 0.000026f);
await RunTestAsync<TerracedHills>(wrapperType, 0.000027f);
}

private static async Task RunTestAsync<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>(WrapperType wrapperType, float threshold = 0.00001f)
Expand Down

0 comments on commit b4c5b4d

Please sign in to comment.