diff --git a/src/ComputeSharp.D2D1.WinUI/CanvasEffect.EffectGraph.cs b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.EffectGraph.cs index 0d3753c3..628e0894 100644 --- a/src/ComputeSharp.D2D1.WinUI/CanvasEffect.EffectGraph.cs +++ b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.EffectGraph.cs @@ -228,9 +228,7 @@ partial class CanvasEffect /// This interface only implemented by and it's not meant to be implemented by external types. /// /// - protected interface IEffectNode - { - } + protected interface IEffectNode; /// /// A marker interface for a generic effect node that was registered from an value. @@ -246,16 +244,12 @@ partial class CanvasEffect /// /// protected interface IEffectNode : IEffectNode - where T : ICanvasImage - { - } + where T : ICanvasImage; /// /// A marker type for an effect node that can be registered and retrieved from an value. /// /// The type of associated with the current effect node. protected sealed class EffectNode : IEffectNode - where T : class, ICanvasImage - { - } + where T : class, ICanvasImage; } \ No newline at end of file diff --git a/src/ComputeSharp.D2D1/Attributes/D2DGeneratedPixelShaderDescriptorAttribute.cs b/src/ComputeSharp.D2D1/Attributes/D2DGeneratedPixelShaderDescriptorAttribute.cs index da27d2fe..92c531b3 100644 --- a/src/ComputeSharp.D2D1/Attributes/D2DGeneratedPixelShaderDescriptorAttribute.cs +++ b/src/ComputeSharp.D2D1/Attributes/D2DGeneratedPixelShaderDescriptorAttribute.cs @@ -19,6 +19,4 @@ namespace ComputeSharp.D2D1; /// /// [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)] -public sealed class D2DGeneratedPixelShaderDescriptorAttribute : Attribute -{ -} \ No newline at end of file +public sealed class D2DGeneratedPixelShaderDescriptorAttribute : Attribute; \ No newline at end of file diff --git a/src/ComputeSharp.D2D1/Attributes/D2DRequiresScenePositionAttribute.cs b/src/ComputeSharp.D2D1/Attributes/D2DRequiresScenePositionAttribute.cs index 8355261d..fb4ecb2e 100644 --- a/src/ComputeSharp.D2D1/Attributes/D2DRequiresScenePositionAttribute.cs +++ b/src/ComputeSharp.D2D1/Attributes/D2DRequiresScenePositionAttribute.cs @@ -12,6 +12,4 @@ namespace ComputeSharp.D2D1; /// For more info, see . /// [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)] -public sealed class D2DRequiresScenePositionAttribute : Attribute -{ -} \ No newline at end of file +public sealed class D2DRequiresScenePositionAttribute : Attribute; \ No newline at end of file diff --git a/src/ComputeSharp.SourceGeneration.Hlsl/Diagnostics/DiagnosticDescriptors.cs b/src/ComputeSharp.SourceGeneration.Hlsl/Diagnostics/DiagnosticDescriptors.cs index fc3653a2..c15a6ad1 100644 --- a/src/ComputeSharp.SourceGeneration.Hlsl/Diagnostics/DiagnosticDescriptors.cs +++ b/src/ComputeSharp.SourceGeneration.Hlsl/Diagnostics/DiagnosticDescriptors.cs @@ -5,6 +5,4 @@ namespace ComputeSharp.SourceGeneration.Diagnostics; /// /// A container for all instances for errors reported by analyzers in this project. /// -internal static partial class DiagnosticDescriptors -{ -} \ No newline at end of file +internal static partial class DiagnosticDescriptors; \ No newline at end of file diff --git a/src/ComputeSharp/Attributes/GeneratedComputeShaderDescriptorAttribute.cs b/src/ComputeSharp/Attributes/GeneratedComputeShaderDescriptorAttribute.cs index f92c1fe2..0424254d 100644 --- a/src/ComputeSharp/Attributes/GeneratedComputeShaderDescriptorAttribute.cs +++ b/src/ComputeSharp/Attributes/GeneratedComputeShaderDescriptorAttribute.cs @@ -22,6 +22,4 @@ namespace ComputeSharp; /// /// [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)] -public sealed class GeneratedComputeShaderDescriptorAttribute : Attribute -{ -} \ No newline at end of file +public sealed class GeneratedComputeShaderDescriptorAttribute : Attribute; \ No newline at end of file diff --git a/src/ComputeSharp/Attributes/GloballyCoherentAttribute.cs b/src/ComputeSharp/Attributes/GloballyCoherentAttribute.cs index a04f23d8..a2b6e550 100644 --- a/src/ComputeSharp/Attributes/GloballyCoherentAttribute.cs +++ b/src/ComputeSharp/Attributes/GloballyCoherentAttribute.cs @@ -21,6 +21,4 @@ namespace ComputeSharp; /// /// [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)] -public sealed class GloballyCoherentAttribute : Attribute -{ -} \ No newline at end of file +public sealed class GloballyCoherentAttribute : Attribute; \ No newline at end of file diff --git a/tests/ComputeSharp.Tests/Attributes/AllDevicesAttribute.cs b/tests/ComputeSharp.Tests/Attributes/AllDevicesAttribute.cs index 7194b7b1..4da97a93 100644 --- a/tests/ComputeSharp.Tests/Attributes/AllDevicesAttribute.cs +++ b/tests/ComputeSharp.Tests/Attributes/AllDevicesAttribute.cs @@ -6,6 +6,4 @@ namespace ComputeSharp.Tests.Attributes; /// An attribute to use with targeting all supported devices. /// [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] -public sealed class AllDevicesAttribute : Attribute -{ -} \ No newline at end of file +public sealed class AllDevicesAttribute : Attribute; \ No newline at end of file diff --git a/tests/ComputeSharp.Tests/ShaderCompilerTests.cs b/tests/ComputeSharp.Tests/ShaderCompilerTests.cs index 5adf186b..8c507492 100644 --- a/tests/ComputeSharp.Tests/ShaderCompilerTests.cs +++ b/tests/ComputeSharp.Tests/ShaderCompilerTests.cs @@ -838,9 +838,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [ThreadGroupSize(DefaultThreadGroupSizes.X)] [GeneratedComputeShaderDescriptor] - internal readonly partial struct ShaderWithPartialDeclarations : IComputeShader - { - } + internal readonly partial struct ShaderWithPartialDeclarations : IComputeShader; partial struct ShaderWithPartialDeclarations {