From cea408a4d4cbde468a85e818bc66f0fbce79cd26 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 19 Oct 2023 03:00:45 +0200 Subject: [PATCH] Update tests and samples to use internal accessibility --- .../D2D1PixelShaderTests.cs | 8 ++--- .../D2D1EffectRegistrationDataTests.cs | 6 ++-- .../D2D1PixelShaderEffectTests.cs | 16 ++++----- .../D2D1PixelShaderTests.cs | 36 +++++++++---------- .../D2D1ReflectionServicesTests.cs | 4 +-- .../D2D1ResourceTextureManagerTests.cs | 14 ++++---- .../D2D1TransformMapperTests.cs | 4 +-- .../Effects/BokehBlurEffect.cs | 4 +-- .../Tests/CanvasEffectTests.cs | 2 +- .../Tests/PixelShaderEffectTests.cs | 10 +++--- .../DeviceDisposalTests.cs | 4 +-- 11 files changed, 54 insertions(+), 54 deletions(-) diff --git a/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/D2D1PixelShaderTests.cs b/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/D2D1PixelShaderTests.cs index e84fdad4..d202251b 100644 --- a/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/D2D1PixelShaderTests.cs +++ b/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/D2D1PixelShaderTests.cs @@ -50,7 +50,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(1)] [D2DInputSimple(2)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ShaderWithNoCompileAttributes : ID2D1PixelShader + internal readonly partial struct ShaderWithNoCompileAttributes : ID2D1PixelShader { public float4 Execute() { @@ -96,7 +96,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(2)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ShaderWithOverriddenProfile : ID2D1PixelShader + internal readonly partial struct ShaderWithOverriddenProfile : ID2D1PixelShader { public float4 Execute() { @@ -142,7 +142,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(2)] [D2DCompileOptions(D2D1CompileOptions.Debug | D2D1CompileOptions.AvoidFlowControl | D2D1CompileOptions.PartialPrecision)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ShaderWithOverriddenOptions : ID2D1PixelShader + internal readonly partial struct ShaderWithOverriddenOptions : ID2D1PixelShader { public float4 Execute() { @@ -179,7 +179,7 @@ public partial class D2D1PixelShaderTests [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] [D2DCompileOptions(D2D1CompileOptions.Debug | D2D1CompileOptions.AvoidFlowControl | D2D1CompileOptions.PartialPrecision)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ShaderWithOverriddenProfileAndOptions : ID2D1PixelShader + internal readonly partial struct ShaderWithOverriddenProfileAndOptions : ID2D1PixelShader { public float4 Execute() { diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs index c0cd430a..181e7a8f 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs @@ -53,7 +53,7 @@ public partial class D2D1EffectRegistrationDataTests [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private readonly partial struct TestRegistrationBlobShader : ID2D1PixelShader + internal readonly partial struct TestRegistrationBlobShader : ID2D1PixelShader { private readonly float a; @@ -99,7 +99,7 @@ public partial class D2D1EffectRegistrationDataTests [D2DEffectAuthor("Bob Ross")] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private readonly partial struct TestRegistrationBlobWithCustomMetadataShader : ID2D1PixelShader + internal readonly partial struct TestRegistrationBlobWithCustomMetadataShader : ID2D1PixelShader { private readonly float a; @@ -196,7 +196,7 @@ public partial class D2D1EffectRegistrationDataTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private readonly partial struct TestRegistrationBlobWithResourceTextures : ID2D1PixelShader + internal readonly partial struct TestRegistrationBlobWithResourceTextures : ID2D1PixelShader { [D2DResourceTextureIndex(0)] public readonly D2D1ResourceTexture1D t0; diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderEffectTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderEffectTests.cs index f968d244..9df99f1d 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderEffectTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderEffectTests.cs @@ -122,7 +122,7 @@ public partial class D2D1PixelShaderEffectTests [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private partial struct NullConstantBufferShader : ID2D1PixelShader + internal partial struct NullConstantBufferShader : ID2D1PixelShader { private float dummy; @@ -154,7 +154,7 @@ public partial class D2D1PixelShaderEffectTests [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private partial struct ConstantBufferSizeTestShader : ID2D1PixelShader + internal partial struct ConstantBufferSizeTestShader : ID2D1PixelShader { private float a; private float b; @@ -188,7 +188,7 @@ public partial class D2D1PixelShaderEffectTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] - private partial struct ShaderWithDefaultEffectId : ID2D1PixelShader + internal partial struct ShaderWithDefaultEffectId : ID2D1PixelShader { public float4 Execute() { @@ -198,7 +198,7 @@ public partial class D2D1PixelShaderEffectTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] - private partial struct ShaderWithDefaultEffectId2 : ID2D1PixelShader + internal partial struct ShaderWithDefaultEffectId2 : ID2D1PixelShader { public float4 Execute() { @@ -222,7 +222,7 @@ public partial class D2D1PixelShaderEffectTests [D2DInputCount(0)] [D2DEffectId("8E1F7F49-EF0D-4242-8912-08ADA36AB4EC")] [D2DGeneratedPixelShaderDescriptor] - private partial struct ShaderWithExplicitEffectId : ID2D1PixelShader + internal partial struct ShaderWithExplicitEffectId : ID2D1PixelShader { public float4 Execute() { @@ -241,7 +241,7 @@ public partial class D2D1PixelShaderEffectTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] - private partial struct ShaderWithDefaultEffectDisplayName : ID2D1PixelShader + internal partial struct ShaderWithDefaultEffectDisplayName : ID2D1PixelShader { public float4 Execute() { @@ -261,7 +261,7 @@ public partial class D2D1PixelShaderEffectTests [D2DInputCount(0)] [D2DEffectDisplayName("Fancy blur")] [D2DGeneratedPixelShaderDescriptor] - private partial struct ShaderWithExplicitEffectDisplayName1 : ID2D1PixelShader + internal partial struct ShaderWithExplicitEffectDisplayName1 : ID2D1PixelShader { public float4 Execute() { @@ -284,7 +284,7 @@ public partial class D2D1PixelShaderEffectTests [D2DEffectCategory("Test effects!")] [D2DEffectAuthor("Bob \r\nRoss")] [D2DGeneratedPixelShaderDescriptor] - private partial struct ShaderWithExplicitEffectDisplayName2 : ID2D1PixelShader + internal partial struct ShaderWithExplicitEffectDisplayName2 : ID2D1PixelShader { public float4 Execute() { diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs index 1aef404c..15524477 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs @@ -67,7 +67,7 @@ public partial class D2D1PixelShaderTests [D2DInputComplex(5)] [D2DInputSimple(6)] [D2DGeneratedPixelShaderDescriptor] - partial struct ShaderWithMultipleInputs : ID2D1PixelShader + internal partial struct ShaderWithMultipleInputs : ID2D1PixelShader { public Float4 Execute() { @@ -95,7 +95,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] - partial struct EmptyShader : ID2D1PixelShader + internal partial struct EmptyShader : ID2D1PixelShader { public Float4 Execute() { @@ -106,7 +106,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(0)] [D2DOutputBuffer(D2D1BufferPrecision.UInt16Normalized)] [D2DGeneratedPixelShaderDescriptor] - partial struct OnlyBufferPrecisionShader : ID2D1PixelShader + internal partial struct OnlyBufferPrecisionShader : ID2D1PixelShader { public Float4 Execute() { @@ -117,7 +117,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(0)] [D2DOutputBuffer(D2D1ChannelDepth.Four)] [D2DGeneratedPixelShaderDescriptor] - partial struct OnlyChannelDepthShader : ID2D1PixelShader + internal partial struct OnlyChannelDepthShader : ID2D1PixelShader { public Float4 Execute() { @@ -128,7 +128,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(0)] [D2DOutputBuffer(D2D1BufferPrecision.UInt8NormalizedSrgb, D2D1ChannelDepth.One)] [D2DGeneratedPixelShaderDescriptor] - partial struct CustomBufferOutputShader : ID2D1PixelShader + internal partial struct CustomBufferOutputShader : ID2D1PixelShader { public Float4 Execute() { @@ -195,7 +195,7 @@ public partial class D2D1PixelShaderTests [D2DInputDescription(5, D2D1Filter.MinMagPointMipLinear)] [D2DInputDescription(6, D2D1Filter.MinPointMagMipLinear, LevelOfDetailCount = 3)] [D2DGeneratedPixelShaderDescriptor] - partial struct ShaderWithInputDescriptions : ID2D1PixelShader + internal partial struct ShaderWithInputDescriptions : ID2D1PixelShader { public Float4 Execute() { @@ -257,7 +257,7 @@ public partial class D2D1PixelShaderTests [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - partial struct ShaderWithoutResourceTextures : ID2D1PixelShader + internal partial struct ShaderWithoutResourceTextures : ID2D1PixelShader { public Float4 Execute() { @@ -269,7 +269,7 @@ public partial class D2D1PixelShaderTests [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - partial struct ShaderWithJustOneResourceTextures : ID2D1PixelShader + internal partial struct ShaderWithJustOneResourceTextures : ID2D1PixelShader { [D2DResourceTextureIndex(0)] D2D1ResourceTexture1D myTexture; @@ -288,7 +288,7 @@ public partial class D2D1PixelShaderTests [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - partial struct ShaderWithResourceTextures : ID2D1PixelShader + internal partial struct ShaderWithResourceTextures : ID2D1PixelShader { float number; @@ -332,7 +332,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ShaderWithoutEmbeddedBytecode : ID2D1PixelShader + internal readonly partial struct ShaderWithoutEmbeddedBytecode : ID2D1PixelShader { public float4 Execute() { @@ -404,7 +404,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(2)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ShaderWithEmbeddedBytecode : ID2D1PixelShader + internal readonly partial struct ShaderWithEmbeddedBytecode : ID2D1PixelShader { public float4 Execute() { @@ -454,7 +454,7 @@ public partial class D2D1PixelShaderTests [D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)] [D2DCompileOptions(D2D1CompileOptions.IeeeStrictness | D2D1CompileOptions.OptimizationLevel2)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ShaderWithEmbeddedBytecodeAndCompileOptions : ID2D1PixelShader + internal readonly partial struct ShaderWithEmbeddedBytecodeAndCompileOptions : ID2D1PixelShader { public float4 Execute() { @@ -486,7 +486,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(0)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct SimpleShaderWithExplicitShaderProfileAndNoCompileOptions : ID2D1PixelShader + internal readonly partial struct SimpleShaderWithExplicitShaderProfileAndNoCompileOptions : ID2D1PixelShader { public float4 Execute() { @@ -498,7 +498,7 @@ public partial class D2D1PixelShaderTests [D2DInputComplex(0)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ComplexShaderWithExplicitShaderProfileAndNoCompileOptions : ID2D1PixelShader + internal readonly partial struct ComplexShaderWithExplicitShaderProfileAndNoCompileOptions : ID2D1PixelShader { public float4 Execute() { @@ -524,7 +524,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(0)] [D2DCompileOptions(D2D1CompileOptions.OptimizationLevel2 | D2D1CompileOptions.IeeeStrictness)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ShaderWithExplicitCompileOptionsAndNoShaderProfile : ID2D1PixelShader + internal readonly partial struct ShaderWithExplicitCompileOptionsAndNoShaderProfile : ID2D1PixelShader { public float4 Execute() { @@ -573,7 +573,7 @@ public partial class D2D1PixelShaderTests [D2DInputDescription(0, D2D1Filter.MinMagMipPoint)] [D2DPixelOptions(D2D1PixelOptions.TrivialSampling)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ShaderWithNoCapturedValues : ID2D1PixelShader + internal readonly partial struct ShaderWithNoCapturedValues : ID2D1PixelShader { public float4 Execute() { @@ -822,7 +822,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private readonly partial struct ShaderWithScalarVectorAndMatrixTypes : ID2D1PixelShader + internal readonly partial struct ShaderWithScalarVectorAndMatrixTypes : ID2D1PixelShader { public readonly int x; public readonly int y; @@ -915,7 +915,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private readonly partial struct ShaderWithScalarVectorAndMatrixTypesInNestedStructs : ID2D1PixelShader + internal readonly partial struct ShaderWithScalarVectorAndMatrixTypesInNestedStructs : ID2D1PixelShader { public readonly int x; public readonly int y; diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs index 3e3947d2..384a9944 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs @@ -64,7 +64,7 @@ public partial class D2D1ReflectionServicesTests [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader41)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ReflectedShader : ID2D1PixelShader + internal readonly partial struct ReflectedShader : ID2D1PixelShader { private readonly float2 offset; @@ -127,7 +127,7 @@ public partial class D2D1ReflectionServicesTests [D2DInputCount(1)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] [D2DGeneratedPixelShaderDescriptor] - private readonly partial struct ReflectedShaderWithDoubleOperations : ID2D1PixelShader + internal readonly partial struct ReflectedShaderWithDoubleOperations : ID2D1PixelShader { private readonly double amount; diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureManagerTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureManagerTests.cs index 81ee741a..91767537 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureManagerTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureManagerTests.cs @@ -171,7 +171,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] - private partial struct DummyShaderWithResourceTexture : ID2D1PixelShader + internal partial struct DummyShaderWithResourceTexture : ID2D1PixelShader { [D2DResourceTextureIndex(0)] private D2D1ResourceTexture2D source; @@ -460,7 +460,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] - private partial struct IndexFrom2DResourceTextureShader : ID2D1PixelShader + internal partial struct IndexFrom2DResourceTextureShader : ID2D1PixelShader { [D2DResourceTextureIndex(0)] private D2D1ResourceTexture2D source; @@ -536,7 +536,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private partial struct IndexFrom3DResourceTextureShader : ID2D1PixelShader + internal partial struct IndexFrom3DResourceTextureShader : ID2D1PixelShader { private int height; @@ -624,7 +624,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private partial struct CopyFromResourceTexture1DShader : ID2D1PixelShader + internal partial struct CopyFromResourceTexture1DShader : ID2D1PixelShader { private int width; @@ -794,7 +794,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private partial struct CopyFromResourceTexture2DShader : ID2D1PixelShader + internal partial struct CopyFromResourceTexture2DShader : ID2D1PixelShader { private int width; private int height; @@ -901,7 +901,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private partial struct CopyFromResourceTexture3DShader : ID2D1PixelShader + internal partial struct CopyFromResourceTexture3DShader : ID2D1PixelShader { private int width; private int height; @@ -946,7 +946,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] - private partial struct NullResourceTextureShader : ID2D1PixelShader + internal partial struct NullResourceTextureShader : ID2D1PixelShader { [D2DResourceTextureIndex(0)] private D2D1ResourceTexture2D source; diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1TransformMapperTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1TransformMapperTests.cs index f567f2b2..364892eb 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1TransformMapperTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1TransformMapperTests.cs @@ -195,7 +195,7 @@ public partial class D2D1TransformMapperTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] - private partial struct DummyShader : ID2D1PixelShader + internal partial struct DummyShader : ID2D1PixelShader { public float4 Execute() { @@ -286,7 +286,7 @@ public partial class D2D1TransformMapperTests [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private partial struct ShaderWithDispatchArea : ID2D1PixelShader + internal partial struct ShaderWithDispatchArea : ID2D1PixelShader { public int Width; public int Height; diff --git a/tests/ComputeSharp.D2D1.Tests/Effects/BokehBlurEffect.cs b/tests/ComputeSharp.D2D1.Tests/Effects/BokehBlurEffect.cs index d006faad..7dd4ea6e 100644 --- a/tests/ComputeSharp.D2D1.Tests/Effects/BokehBlurEffect.cs +++ b/tests/ComputeSharp.D2D1.Tests/Effects/BokehBlurEffect.cs @@ -482,7 +482,7 @@ public sealed partial class BokehBlurEffect /// /// The vertical convolution shader and transform. /// - private sealed partial class VerticalConvolution + internal sealed partial class VerticalConvolution { /// /// The for the shader. @@ -530,7 +530,7 @@ public sealed partial class BokehBlurEffect /// /// The horizontal convolutin and partial accumulation effect and transform. /// - private sealed partial class HorizontalConvolutionAndAccumulatePartials + internal sealed partial class HorizontalConvolutionAndAccumulatePartials { /// /// The for the shader. diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs index 8f549f15..ec58ee95 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs @@ -693,7 +693,7 @@ public partial class CanvasEffectTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private partial struct ShaderWithNoInputs : ID2D1PixelShader + internal partial struct ShaderWithNoInputs : ID2D1PixelShader { public int Value; diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs index f44b0b74..24674079 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs @@ -456,7 +456,7 @@ public partial class PixelShaderEffectTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private partial struct ShaderWithSomeProperties : ID2D1PixelShader + internal partial struct ShaderWithSomeProperties : ID2D1PixelShader { public float A; public int B; @@ -473,7 +473,7 @@ public partial class PixelShaderEffectTests [D2DInputCount(1)] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] - private partial struct ShaderWithSomePropertiesAndInputs : ID2D1PixelShader + internal partial struct ShaderWithSomePropertiesAndInputs : ID2D1PixelShader { public int Number; @@ -485,7 +485,7 @@ public partial class PixelShaderEffectTests [D2DInputCount(0)] [D2DGeneratedPixelShaderDescriptor] - private partial struct ShaderWith0Inputs : ID2D1PixelShader + internal partial struct ShaderWith0Inputs : ID2D1PixelShader { public float4 Execute() { @@ -496,7 +496,7 @@ public partial class PixelShaderEffectTests [D2DInputCount(1)] [D2DInputSimple(0)] [D2DGeneratedPixelShaderDescriptor] - private partial struct ShaderWith1Input : ID2D1PixelShader + internal partial struct ShaderWith1Input : ID2D1PixelShader { public float4 Execute() { @@ -508,7 +508,7 @@ public partial class PixelShaderEffectTests [D2DInputSimple(0)] [D2DInputSimple(1)] [D2DGeneratedPixelShaderDescriptor] - private partial struct ShaderWith2Inputs : ID2D1PixelShader + internal partial struct ShaderWith2Inputs : ID2D1PixelShader { public float4 Execute() { diff --git a/tests/ComputeSharp.Tests.DeviceLost/DeviceDisposalTests.cs b/tests/ComputeSharp.Tests.DeviceLost/DeviceDisposalTests.cs index 312509ea..a6287dda 100644 --- a/tests/ComputeSharp.Tests.DeviceLost/DeviceDisposalTests.cs +++ b/tests/ComputeSharp.Tests.DeviceLost/DeviceDisposalTests.cs @@ -146,7 +146,7 @@ public partial class DeviceDisposalTests [EmbeddedBytecode(DispatchAxis.X)] [GeneratedComputeShaderDescriptor] [AutoConstructor] - private readonly partial struct InitializeShader : IComputeShader + internal readonly partial struct InitializeShader : IComputeShader { private readonly ReadWriteBuffer buffer; @@ -179,7 +179,7 @@ public partial class DeviceDisposalTests [EmbeddedBytecode(DispatchAxis.XY)] [GeneratedComputeShaderDescriptor] - private partial struct HelloWorldShader : IComputeShader + internal partial struct HelloWorldShader : IComputeShader { public float4 Execute() {