Skip to content

Commit

Permalink
[Testbed] Added higher threshold for ResourceArrays test.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Jun 23, 2024
1 parent 8c8f592 commit 0d7c330
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/Testbed/UnitTests/TestResourceArrays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ DEF_TEST( ResourceArrays )
// Create graphics PSO
GraphicsPipelineDescriptor psoDesc;
{
psoDesc.pipelineLayout = layouts[PipelineSolid];
psoDesc.pipelineLayout = psoLayout;
psoDesc.renderPass = swapChain->GetRenderPass();
psoDesc.vertexShader = shaders[VSResourceArrays];
psoDesc.fragmentShader = shaders[PSResourceArrays];
Expand Down Expand Up @@ -123,7 +123,10 @@ DEF_TEST( ResourceArrays )

// Evaluate readback result
SaveCapture(readbackTex, "ResourceArrays");
const DiffResult diff = DiffImages("ResourceArrays");

constexpr int threshold = 3; // Tolerate a threshold of 3 color values
const DiffResult diff = DiffImages("ResourceArrays", threshold);

TestResult result = diff.Evaluate("resource arrays");

// Clear resources
Expand Down

0 comments on commit 0d7c330

Please sign in to comment.