Update all tests to address new analyzer errors
このコミットが含まれているのは:
1 親
a0a269a4e6
コミット
984f834a3f
3ファイル変更
+9
-3
検索条件に一致するファイルはありません
@@ -558,12 +558,15 @@ namespace ComputeSharp.D2D1.Tests
|
||||
[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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ public partial class D2D1ReflectionServicesTests
|
||||
Assert.AreEqual("""
|
||||
#define D2D_INPUT_COUNT 3
|
||||
#define D2D_INPUT0_SIMPLE
|
||||
#define D2D_INPUT1_COMPLEX
|
||||
#define D2D_INPUT1_SIMPLE
|
||||
#define D2D_INPUT2_COMPLEX
|
||||
#define D2D_REQUIRES_SCENE_POSITION
|
||||
|
||||
@@ -52,7 +52,7 @@ public partial class D2D1ReflectionServicesTests
|
||||
|
||||
[D2DInputCount(3)]
|
||||
[D2DInputSimple(0)]
|
||||
[D2DInputComplex(1)]
|
||||
[D2DInputSimple(1)]
|
||||
[D2DInputComplex(2)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader41)]
|
||||
@@ -98,6 +98,7 @@ public partial class D2D1ReflectionServicesTests
|
||||
|
||||
Assert.AreEqual("""
|
||||
#define D2D_INPUT_COUNT 1
|
||||
#define D2D_INPUT0_SIMPLE
|
||||
|
||||
#include "d2d1effecthelpers.hlsli"
|
||||
|
||||
@@ -113,6 +114,7 @@ public partial class D2D1ReflectionServicesTests
|
||||
}
|
||||
|
||||
[D2DInputCount(1)]
|
||||
[D2DInputSimple(0)]
|
||||
[D2DRequiresDoublePrecisionSupport]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedPixelShaderDescriptor]
|
||||
|
||||
@@ -473,6 +473,7 @@ public partial class PixelShaderEffectTests
|
||||
}
|
||||
|
||||
[D2DInputCount(1)]
|
||||
[D2DInputSimple(0)]
|
||||
[D2DGeneratedPixelShaderDescriptor]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct ShaderWithSomePropertiesAndInputs : ID2D1PixelShader
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする