diff --git a/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12Allocation.cs b/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12Allocation.cs
index 74d0b775..4ddfb0ec 100644
--- a/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12Allocation.cs
+++ b/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12Allocation.cs
@@ -15,7 +15,10 @@ namespace ComputeSharp.Interop.Allocation;
/// An allocation wrapper for a native object.
///
[Guid("D42D5782-2DE7-4539-A817-482E3AA01E2E")]
-internal unsafe struct ID3D12Allocation : IUnknown.Interface
+internal unsafe struct ID3D12Allocation
+#if NET6_0_OR_GREATER
+ : IUnknown.Interface
+#endif
{
///
/// Gets the for (D42D5782-2DE7-4539-A817-482E3AA01E2E).
diff --git a/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12MemoryAllocator.cs b/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12MemoryAllocator.cs
index 0582b127..7557a5df 100644
--- a/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12MemoryAllocator.cs
+++ b/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12MemoryAllocator.cs
@@ -15,7 +15,10 @@ namespace ComputeSharp.Interop.Allocation;
/// An object that can allocate resources for a given instance.
///
[Guid("2D5E55D2-9244-431F-868E-0D90AAB6E575")]
-internal unsafe struct ID3D12MemoryAllocator : IUnknown.Interface
+internal unsafe struct ID3D12MemoryAllocator
+#if NET6_0_OR_GREATER
+ : IUnknown.Interface
+#endif
{
///
/// Gets the for (2D5E55D2-9244-431F-868E-0D90AAB6E575).
diff --git a/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12MemoryAllocatorFactory.cs b/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12MemoryAllocatorFactory.cs
index 7e903686..a5496fdb 100644
--- a/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12MemoryAllocatorFactory.cs
+++ b/src/ComputeSharp/Graphics/Interop/Allocation/ID3D12MemoryAllocatorFactory.cs
@@ -15,7 +15,10 @@ namespace ComputeSharp.Interop.Allocation;
/// A factory type for objects.
///
[Guid("CC1E74A7-786D-40F4-8AE2-F8B7A255587E")]
-internal unsafe struct ID3D12MemoryAllocatorFactory : IUnknown.Interface
+internal unsafe struct ID3D12MemoryAllocatorFactory
+#if NET6_0_OR_GREATER
+ : IUnknown.Interface
+#endif
{
///
/// Gets the for (CC1E74A7-786D-40F4-8AE2-F8B7A255587E).
diff --git a/src/TerraFX.Interop.Windows/Windows/um/Unknwnbase/IUnknown.cs b/src/TerraFX.Interop.Windows/Windows/um/Unknwnbase/IUnknown.cs
index 07e77b06..9a75021e 100644
--- a/src/TerraFX.Interop.Windows/Windows/um/Unknwnbase/IUnknown.cs
+++ b/src/TerraFX.Interop.Windows/Windows/um/Unknwnbase/IUnknown.cs
@@ -38,18 +38,4 @@ internal unsafe partial struct IUnknown
{
return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
}
-
- public interface Interface
- {
- [VtblIndex(0)]
- HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject);
-
- [VtblIndex(1)]
- [return: NativeTypeName("ULONG")]
- uint AddRef();
-
- [VtblIndex(2)]
- [return: NativeTypeName("ULONG")]
- uint Release();
- }
}
\ No newline at end of file