diff --git a/samples/ComputeSharp.SwapChain/Backend/Win32ApplicationRunner.cs b/samples/ComputeSharp.SwapChain/Backend/Win32ApplicationRunner.cs
index bc3b9f6b..a76be1a8 100644
--- a/samples/ComputeSharp.SwapChain/Backend/Win32ApplicationRunner.cs
+++ b/samples/ComputeSharp.SwapChain/Backend/Win32ApplicationRunner.cs
@@ -11,7 +11,7 @@ namespace ComputeSharp.SwapChain.Backend;
///
/// A helper class to manage the creation and execution of Win32 applications.
///
-internal unsafe static class Win32ApplicationRunner
+internal static unsafe class Win32ApplicationRunner
{
///
/// Whether or not a resize operation is in progress.
diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1EffectRegistrationData.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1EffectRegistrationData.cs
index 060d0d76..4bc80f68 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1EffectRegistrationData.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1EffectRegistrationData.cs
@@ -26,7 +26,7 @@ public static class D2D1EffectRegistrationData
///
/// The containing type for deserialized version 1 registration blobs.
///
- public unsafe readonly struct V1
+ public readonly unsafe struct V1
{
///
/// The blob id for V1 registration data.
diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PropertyBinding.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PropertyBinding.cs
index bbfe8d3f..620320b3 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PropertyBinding.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PropertyBinding.cs
@@ -3,7 +3,7 @@ namespace ComputeSharp.D2D1.Interop;
///
/// A model representing a property binding for an effect.
///
-public unsafe readonly struct D2D1PropertyBinding
+public readonly unsafe struct D2D1PropertyBinding
{
///
/// Creates a new instance with the specified parameters.
diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.ID2D1DrawTransformMethods.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.ID2D1DrawTransformMethods.cs
index 41d8562e..9075fbf6 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.ID2D1DrawTransformMethods.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.ID2D1DrawTransformMethods.cs
@@ -16,7 +16,7 @@ partial struct PixelShaderEffect
///
/// The implementation for .
///
- private unsafe static class ID2D1DrawTransformMethods
+ private static unsafe class ID2D1DrawTransformMethods
{
#if !NET6_0_OR_GREATER
///
diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/ResourceManagers/D2D1ResourceTextureManagerImpl.ID2D1ResourceTextureManagerInternal.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/ResourceManagers/D2D1ResourceTextureManagerImpl.ID2D1ResourceTextureManagerInternal.cs
index fefe89cf..7472fb31 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/ResourceManagers/D2D1ResourceTextureManagerImpl.ID2D1ResourceTextureManagerInternal.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/ResourceManagers/D2D1ResourceTextureManagerImpl.ID2D1ResourceTextureManagerInternal.cs
@@ -15,7 +15,7 @@ partial struct D2D1ResourceTextureManagerImpl
///
/// The implementation for ID2D1ResourceTextureManagerInternal.
///
- private unsafe static class ID2D1ResourceTextureManagerInternalMethods
+ private static unsafe class ID2D1ResourceTextureManagerInternalMethods
{
#if !NET6_0_OR_GREATER
///
diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/Buffer{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/Buffer{T}.cs
index 21ef2187..f76638a0 100644
--- a/src/ComputeSharp/Graphics/Resources/Abstract/Buffer{T}.cs
+++ b/src/ComputeSharp/Graphics/Resources/Abstract/Buffer{T}.cs
@@ -25,7 +25,7 @@ namespace ComputeSharp.Resources;
/// A representing a typed buffer stored on GPU memory.
///
/// The type of items stored on the buffer.
-public unsafe abstract class Buffer : NativeObject, IGraphicsResource
+public abstract unsafe class Buffer : NativeObject, IGraphicsResource
where T : unmanaged
{
#if NET6_0_OR_GREATER
diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/Texture1D{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/Texture1D{T}.cs
index 6b80e8bf..c6ec45ea 100644
--- a/src/ComputeSharp/Graphics/Resources/Abstract/Texture1D{T}.cs
+++ b/src/ComputeSharp/Graphics/Resources/Abstract/Texture1D{T}.cs
@@ -26,7 +26,7 @@ namespace ComputeSharp.Resources;
/// A representing a typed 1D texture stored on GPU memory.
///
/// The type of items stored on the texture.
-public unsafe abstract class Texture1D : NativeObject, IGraphicsResource, GraphicsResourceHelper.IGraphicsResource
+public abstract unsafe class Texture1D : NativeObject, IGraphicsResource, GraphicsResourceHelper.IGraphicsResource
where T : unmanaged
{
#if NET6_0_OR_GREATER
diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/Texture2D{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/Texture2D{T}.cs
index f35263e0..5b071189 100644
--- a/src/ComputeSharp/Graphics/Resources/Abstract/Texture2D{T}.cs
+++ b/src/ComputeSharp/Graphics/Resources/Abstract/Texture2D{T}.cs
@@ -26,7 +26,7 @@ namespace ComputeSharp.Resources;
/// A representing a typed 2D texture stored on GPU memory.
///
/// The type of items stored on the texture.
-public unsafe abstract class Texture2D : NativeObject, IGraphicsResource, GraphicsResourceHelper.IGraphicsResource
+public abstract unsafe class Texture2D : NativeObject, IGraphicsResource, GraphicsResourceHelper.IGraphicsResource
where T : unmanaged
{
#if NET6_0_OR_GREATER
diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/Texture3D{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/Texture3D{T}.cs
index f1829d57..4f27b0b6 100644
--- a/src/ComputeSharp/Graphics/Resources/Abstract/Texture3D{T}.cs
+++ b/src/ComputeSharp/Graphics/Resources/Abstract/Texture3D{T}.cs
@@ -26,7 +26,7 @@ namespace ComputeSharp.Resources;
/// A representing a typed 3D texture stored on GPU memory.
///
/// The type of items stored on the texture.
-public unsafe abstract class Texture3D : NativeObject, IGraphicsResource, GraphicsResourceHelper.IGraphicsResource
+public abstract unsafe class Texture3D : NativeObject, IGraphicsResource, GraphicsResourceHelper.IGraphicsResource
where T : unmanaged
{
#if NET6_0_OR_GREATER
diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture1D{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture1D{T}.cs
index b2741cc7..23eee345 100644
--- a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture1D{T}.cs
+++ b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture1D{T}.cs
@@ -17,7 +17,7 @@ namespace ComputeSharp.Resources;
/// A representing a typed 1D texture stored on on CPU memory, that can be used to transfer data to/from the GPU.
///
/// The type of items stored on the texture.
-public unsafe abstract class TransferTexture1D : NativeObject, IGraphicsResource, IMemoryOwner
+public abstract unsafe class TransferTexture1D : NativeObject, IGraphicsResource, IMemoryOwner
where T : unmanaged
{
#if NET6_0_OR_GREATER
diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture2D{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture2D{T}.cs
index 121f3f24..52aa6f3a 100644
--- a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture2D{T}.cs
+++ b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture2D{T}.cs
@@ -15,7 +15,7 @@ namespace ComputeSharp.Resources;
/// A representing a typed 2D texture stored on on CPU memory, that can be used to transfer data to/from the GPU.
///
/// The type of items stored on the texture.
-public unsafe abstract class TransferTexture2D : NativeObject, IGraphicsResource
+public abstract unsafe class TransferTexture2D : NativeObject, IGraphicsResource
where T : unmanaged
{
#if NET6_0_OR_GREATER
diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture3D{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture3D{T}.cs
index c9ae6a1d..b564a246 100644
--- a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture3D{T}.cs
+++ b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture3D{T}.cs
@@ -15,7 +15,7 @@ namespace ComputeSharp.Resources;
/// A representing a typed 3D texture stored on on CPU memory, that can be used to transfer data to/from the GPU.
///
/// The type of items stored on the texture.
-public unsafe abstract class TransferTexture3D : NativeObject, IGraphicsResource
+public abstract unsafe class TransferTexture3D : NativeObject, IGraphicsResource
where T : unmanaged
{
#if NET6_0_OR_GREATER