Skip to content

Commit

Permalink
Update all tests to address new analyzer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Nov 21, 2024
1 parent b34f6bb commit 41b47ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,15 @@ public float4 Execute()
[D2DInputCount(1)]
[D2DInputComplex(0)]
[D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)]
[D2DRequiresScenePosition]
[D2DGeneratedPixelShaderDescriptor]
internal readonly partial struct ComplexShaderWithExplicitShaderProfileAndNoCompileOptions : ID2D1PixelShader
{
public float4 Execute()
{
return D2D.GetInput(0);
float2 uv = D2D.GetScenePosition().XY;

return D2D.SampleInput(0, uv);
}
}

Expand Down
3 changes: 2 additions & 1 deletion tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void GetShaderInfo()

[D2DInputCount(3)]
[D2DInputSimple(0)]
[D2DInputComplex(1)]
[D2DInputSimple(1)]
[D2DInputComplex(2)]
[D2DRequiresScenePosition]
[D2DShaderProfile(D2D1ShaderProfile.PixelShader41)]
Expand Down Expand Up @@ -113,6 +113,7 @@ public void GetShaderInfoWithDoublePrecisionFeature()
}

[D2DInputCount(1)]
[D2DInputSimple(0)]
[D2DRequiresDoublePrecisionSupport]
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
[D2DGeneratedPixelShaderDescriptor]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ public float4 Execute()
}

[D2DInputCount(1)]
[D2DInputSimple(0)]
[D2DGeneratedPixelShaderDescriptor]
[AutoConstructor]
internal readonly partial struct ShaderWithSomePropertiesAndInputs : ID2D1PixelShader
Expand Down

0 comments on commit 41b47ad

Please sign in to comment.