diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasDevice.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasDevice.cs
index 017cfa83..7f32bdd2 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasDevice.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasDevice.cs
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using TerraFX.Interop;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffect.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffect.cs
index 4a599ce0..f51b8fbf 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffect.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffect.cs
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using TerraFX.Interop;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs
index 9aecc008..7275b492 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasEffectFactoryNative.cs
@@ -1,12 +1,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using TerraFX.Interop;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
using WinRT;
using WinRT.Interop;
-using IInspectable = TerraFX.Interop.WinRT.IInspectable;
+using IInspectable = ComputeSharp.Win32.IInspectable;
#pragma warning disable CS0649, IDE1006
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs
index 98d88e29..4a17c0ec 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasFactoryNative.cs
@@ -1,11 +1,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using TerraFX.Interop;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
using WinRT;
using WinRT.Interop;
-using IInspectable = TerraFX.Interop.WinRT.IInspectable;
+using IInspectable = ComputeSharp.Win32.IInspectable;
#pragma warning disable CS0649, IDE1006
@@ -77,7 +76,7 @@ internal unsafe struct ICanvasFactoryNative
/// was not previously registered, or if was already registered.
///
///
- /// The method validates at runtime that is an
+ /// The method validates at runtime that is an
/// and that is an . Additionally,
/// has to implement IWeakReferenceSource for this method to be successful.
///
@@ -100,7 +99,7 @@ internal unsafe struct ICanvasFactoryNative
/// resource was previously registered and could be correctly unregistered, otherwise.
///
///
- /// The method validates at runtime that is an .
+ /// The method validates at runtime that is an .
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(8)]
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs
index a8a143aa..4e64aa82 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasImageInterop.cs
@@ -1,9 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
-using TerraFX.Interop;
+using ComputeSharp.Win32;
using WinRT;
using WinRT.Interop;
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreator.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreator.cs
index cc071f3d..a379d9ce 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreator.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreator.cs
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using TerraFX.Interop;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreatorWithDpi.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreatorWithDpi.cs
index 350c152d..f46e34c5 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreatorWithDpi.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceCreatorWithDpi.cs
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using TerraFX.Interop;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceWrapperNative.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceWrapperNative.cs
index 2df7b92d..6bf8a784 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceWrapperNative.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ICanvasResourceWrapperNative.cs
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using TerraFX.Interop;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextLease.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextLease.cs
index c0e19200..a1e20505 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextLease.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextLease.cs
@@ -1,9 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using TerraFX.Interop;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextPool.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextPool.cs
index 500b65ab..8651549b 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextPool.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/ID2D1DeviceContextPool.cs
@@ -1,15 +1,14 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using TerraFX.Interop;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
namespace ABI.Microsoft.Graphics.Canvas;
///
-/// An interface for an object that provides access to pooled objects.
+/// An interface for an object that provides access to pooled objects.
///
[Guid("454A82A1-F024-40DB-BD5B-8F527FD58AD0")]
[NativeTypeName("class ID2D1DeviceContextPool : IUnknown")]
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Inspectable/IInspectable.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Inspectable/IInspectable.cs
index 84614429..05dc1146 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Inspectable/IInspectable.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Inspectable/IInspectable.cs
@@ -6,7 +6,6 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-using TerraFX.Interop.Windows;
#pragma warning disable CS0649, IDE1006
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Win2D.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Win2D.cs
index 2e8b25d0..7e5a261d 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Win2D.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Win2D.cs
@@ -1,7 +1,7 @@
using System.Numerics;
using System.Runtime.InteropServices;
using ABI.Microsoft.Graphics.Canvas.Effects;
-using TerraFX.Interop;
+using ComputeSharp.Win32;
using Windows.Foundation;
namespace ABI.Microsoft.Graphics.Canvas;
@@ -18,7 +18,7 @@ internal static unsafe class Win2D
/// The input instance to compute the bounds for.
/// The transform to use (optional).
/// The resulting bounds.
- /// The for the operation.
+ /// The for the operation.
[DllImport("Microsoft.Graphics.Canvas.dll", PreserveSig = true, ExactSpelling = true)]
[return: NativeTypeName("HRESULT")]
public static extern int GetBoundsForICanvasImageInterop(
@@ -34,7 +34,7 @@ internal static unsafe class Win2D
/// The target instance to execute the operation upon.
/// The input index to invalidate.
/// The rectangle to invalidate.
- /// The for the operation.
+ /// The for the operation.
[DllImport("Microsoft.Graphics.Canvas.dll", PreserveSig = true, ExactSpelling = true)]
[return: NativeTypeName("HRESULT")]
public static extern int InvalidateSourceRectangleForICanvasImageInterop(
@@ -50,7 +50,7 @@ internal static unsafe class Win2D
/// The target instance to execute the operation upon.
/// The resulting length of the COM array returned via .
/// The COM array with the sequence of invalid rectangles for the effect.
- /// The for the operation.
+ /// The for the operation.
[DllImport("Microsoft.Graphics.Canvas.dll", PreserveSig = true, ExactSpelling = true)]
[return: NativeTypeName("HRESULT")]
public static extern int GetInvalidRectanglesForICanvasImageInterop(
@@ -74,7 +74,7 @@ internal static unsafe class Win2D
/// The sequence of bounds to consider in the resulting output.
/// The number of elements provided in .
/// The sequence of resulting required rectangles to compute.
- /// The for the operation.
+ /// The for the operation.
[DllImport("Microsoft.Graphics.Canvas.dll", PreserveSig = true, ExactSpelling = true)]
[return: NativeTypeName("HRESULT")]
public static extern int GetRequiredSourceRectanglesForICanvasImageInterop(
diff --git a/src/ComputeSharp.D2D1.WinUI/Buffers/SourceReference.cs b/src/ComputeSharp.D2D1.WinUI/Buffers/SourceReference.cs
index e91c02ab..28642405 100644
--- a/src/ComputeSharp.D2D1.WinUI/Buffers/SourceReference.cs
+++ b/src/ComputeSharp.D2D1.WinUI/Buffers/SourceReference.cs
@@ -3,8 +3,7 @@ using System.Runtime.CompilerServices;
using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.WinUI.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
using Windows.Graphics.Effects;
namespace ComputeSharp.D2D1.WinUI.Buffers;
diff --git a/src/ComputeSharp.D2D1.WinUI/CanvasEffect.Interop.cs b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.Interop.cs
index b0f6fd7b..25dee559 100644
--- a/src/ComputeSharp.D2D1.WinUI/CanvasEffect.Interop.cs
+++ b/src/ComputeSharp.D2D1.WinUI/CanvasEffect.Interop.cs
@@ -4,9 +4,8 @@ using System.Numerics;
using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
+using ComputeSharp.Win32;
using Microsoft.Graphics.Canvas;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
using Windows.Foundation;
using ICanvasResourceCreator = Microsoft.Graphics.Canvas.ICanvasResourceCreator;
diff --git a/src/ComputeSharp.D2D1.WinUI/Extensions/ICanvasDeviceExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/ICanvasDeviceExtensions.cs
index 43d57c5e..d4d6d476 100644
--- a/src/ComputeSharp.D2D1.WinUI/Extensions/ICanvasDeviceExtensions.cs
+++ b/src/ComputeSharp.D2D1.WinUI/Extensions/ICanvasDeviceExtensions.cs
@@ -1,8 +1,6 @@
using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
-using Win32 = TerraFX.Interop.Windows.Windows;
+using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI.Extensions;
@@ -23,14 +21,14 @@ internal static unsafe class ICanvasDeviceExtensions
// Get the ICanvasResourceWrapperNative wrapper around the input device
canvasDevice.QueryInterface(
- riid: Win32.__uuidof(),
+ riid: Win32.Windows.__uuidof(),
ppvObject: (void**)canvasDeviceResourceWrapperNative.GetAddressOf()).Assert();
// Get the underlying ID2D1Device1 instance in use
HRESULT hresult = canvasDeviceResourceWrapperNative.Get()->GetNativeResource(
device: null,
dpi: 0,
- iid: Win32.__uuidof(),
+ iid: Win32.Windows.__uuidof(),
resource: (void**)d2D1Device1);
return hresult;
@@ -60,7 +58,7 @@ internal static unsafe class ICanvasDeviceExtensions
{
// Get the ID2D1DeviceContextPool interface reference
canvasDevice.QueryInterface(
- riid: Win32.__uuidof(),
+ riid: Win32.Windows.__uuidof(),
ppvObject: (void**)d2D1DeviceContextPool.GetAddressOf()).Assert();
// Get a new ID2D1DeviceContextLease object from the retrieved pool
diff --git a/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1DeviceContextExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1DeviceContextExtensions.cs
index c80b7afd..6d827df9 100644
--- a/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1DeviceContextExtensions.cs
+++ b/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1DeviceContextExtensions.cs
@@ -1,6 +1,5 @@
using ComputeSharp.D2D1.Extensions;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI.Extensions;
diff --git a/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1EffectExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1EffectExtensions.cs
index c7ed870e..e7901037 100644
--- a/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1EffectExtensions.cs
+++ b/src/ComputeSharp.D2D1.WinUI/Extensions/ID2D1EffectExtensions.cs
@@ -7,8 +7,7 @@ using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.Interop;
using ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
using ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI.Extensions;
diff --git a/src/ComputeSharp.D2D1.WinUI/Extensions/IUnknownExtensions.cs b/src/ComputeSharp.D2D1.WinUI/Extensions/IUnknownExtensions.cs
index 54e8527a..ffee0181 100644
--- a/src/ComputeSharp.D2D1.WinUI/Extensions/IUnknownExtensions.cs
+++ b/src/ComputeSharp.D2D1.WinUI/Extensions/IUnknownExtensions.cs
@@ -1,7 +1,6 @@
using System.Runtime.CompilerServices;
using ComputeSharp.D2D1.Extensions;
-using TerraFX.Interop.Windows;
-using Win32 = TerraFX.Interop.Windows.Windows;
+using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI.Extensions;
@@ -35,8 +34,8 @@ internal static unsafe class IUnknownExtensions
using ComPtr leftUnknown = default;
using ComPtr rightUnknown = default;
- ((IUnknown*)Unsafe.AsPointer(ref left))->QueryInterface(Win32.__uuidof(), (void**)leftUnknown.GetAddressOf()).Assert();
- ((IUnknown*)right)->QueryInterface(Win32.__uuidof(), (void**)rightUnknown.GetAddressOf()).Assert();
+ ((IUnknown*)Unsafe.AsPointer(ref left))->QueryInterface(Win32.Windows.__uuidof(), (void**)leftUnknown.GetAddressOf()).Assert();
+ ((IUnknown*)right)->QueryInterface(Win32.Windows.__uuidof(), (void**)rightUnknown.GetAddressOf()).Assert();
return leftUnknown.Get() == rightUnknown.Get();
}
diff --git a/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs b/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs
index 07abf3bf..00ce1b70 100644
--- a/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs
+++ b/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs
@@ -1,8 +1,8 @@
using System;
using System.Diagnostics.CodeAnalysis;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
using WinRT;
-using IInspectable = TerraFX.Interop.WinRT.IInspectable;
+using IInspectable = ComputeSharp.Win32.IInspectable;
namespace ComputeSharp.D2D1.WinUI.Helpers;
diff --git a/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs b/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs
index 97562833..5eb32a05 100644
--- a/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs
+++ b/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs
@@ -2,14 +2,14 @@ using System;
using System.Diagnostics.CodeAnalysis;
using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
using Windows.Graphics.Effects;
using WinRT;
namespace ComputeSharp.D2D1.WinUI.Helpers;
using CanvasDevice = Microsoft.Graphics.Canvas.CanvasDevice;
-using IInspectable = TerraFX.Interop.WinRT.IInspectable;
+using IInspectable = Win32.IInspectable;
///
/// A helper type to replicate Win2D's ResourceManager type.
diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffect.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffect.cs
index 467c1f5f..bebe30f4 100644
--- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffect.cs
+++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffect.cs
@@ -5,7 +5,7 @@ using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
using ComputeSharp.Interop;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
using Windows.Foundation;
using ICanvasEffect = Microsoft.Graphics.Canvas.Effects.ICanvasEffect;
using ICanvasResourceCreatorWithDpi = Microsoft.Graphics.Canvas.ICanvasResourceCreatorWithDpi;
diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs
index eefa430b..b1ee3d9a 100644
--- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs
+++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs
@@ -5,9 +5,7 @@ using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.Interop;
using ComputeSharp.D2D1.WinUI.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
-using TerraFX.Interop.WinRT;
+using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI;
diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImage.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImage.cs
index 3a23f23d..bd40b527 100644
--- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImage.cs
+++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImage.cs
@@ -3,7 +3,7 @@ using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
using ComputeSharp.Interop;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
using Windows.Foundation;
using ICanvasResourceCreator = Microsoft.Graphics.Canvas.ICanvasResourceCreator;
diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImageInterop.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImageInterop.cs
index 3a683c99..df2a995a 100644
--- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImageInterop.cs
+++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ICanvasImageInterop.cs
@@ -7,12 +7,10 @@ using ComputeSharp.D2D1.Interop;
using ComputeSharp.D2D1.WinUI.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
using ComputeSharp.Interop;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
using Windows.Graphics.Effects;
using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_D2D_IMAGE_FLAGS;
using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_DEVICE_ASSOCIATION_TYPE;
-using Win32 = TerraFX.Interop.Windows.Windows;
namespace ComputeSharp.D2D1.WinUI;
@@ -64,7 +62,7 @@ unsafe partial class PixelShaderEffect
}
// Set the association type if the copy was successful
- if (Win32.SUCCEEDED(hresult))
+ if (Win32.Windows.SUCCEEDED(hresult))
{
*type = WIN2D_GET_DEVICE_ASSOCIATION_TYPE_REALIZATION_DEVICE;
}
diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.Sources.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.Sources.cs
index 68b69134..b9111ff1 100644
--- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.Sources.cs
+++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.Sources.cs
@@ -7,16 +7,14 @@ using ComputeSharp.D2D1.WinUI.Buffers;
using ComputeSharp.D2D1.WinUI.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
using ComputeSharp.Interop;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
using Windows.Graphics.Effects;
using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_D2D_IMAGE_FLAGS;
using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_DEVICE_ASSOCIATION_TYPE;
-using static TerraFX.Interop.DirectX.D2D1_BORDER_MODE;
-using static TerraFX.Interop.DirectX.D2D1_DPICOMPENSATION_INTERPOLATION_MODE;
-using static TerraFX.Interop.DirectX.D2D1_DPICOMPENSATION_PROP;
-using static TerraFX.Interop.DirectX.D2D1_PROPERTY_TYPE;
-using Win32 = TerraFX.Interop.Windows.Windows;
+using static ComputeSharp.Win32.D2D1_BORDER_MODE;
+using static ComputeSharp.Win32.D2D1_DPICOMPENSATION_INTERPOLATION_MODE;
+using static ComputeSharp.Win32.D2D1_DPICOMPENSATION_PROP;
+using static ComputeSharp.Win32.D2D1_PROPERTY_TYPE;
namespace ComputeSharp.D2D1.WinUI;
@@ -133,7 +131,7 @@ unsafe partial class PixelShaderEffect
// Try to get the ICanvasImageInterop interface from the input source
HRESULT hresult = RcwMarshaller.GetNativeInterface(value, canvasImageInterop.GetAddressOf());
- if (!Win32.SUCCEEDED(hresult))
+ if (!Win32.Windows.SUCCEEDED(hresult))
{
// Only potentially handle E_NOINTERFACE, always throw in other cases
if (hresult != E.E_NOINTERFACE)
diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.cs
index afa2fa24..b8040498 100644
--- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.cs
+++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.Properties.Interop.cs
@@ -2,8 +2,8 @@ using System;
using ComputeSharp.D2D1.Interop;
using ComputeSharp.D2D1.WinUI.Extensions;
using ComputeSharp.Interop;
+using ComputeSharp.Win32;
using Microsoft.Graphics.Canvas;
-using TerraFX.Interop.DirectX;
namespace ComputeSharp.D2D1.WinUI;
diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ReferenceTracking.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ReferenceTracking.cs
index 76865d69..0429e3d7 100644
--- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ReferenceTracking.cs
+++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.ReferenceTracking.cs
@@ -2,7 +2,7 @@ using System;
using ComputeSharp.Interop;
using System.Runtime.CompilerServices;
using ComputeSharp.D2D1.WinUI.Helpers;
-using TerraFX.Interop.Windows;
+using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI;
diff --git a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.cs b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.cs
index 7820cf68..be34464c 100644
--- a/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.cs
+++ b/src/ComputeSharp.D2D1.WinUI/PixelShaderEffect{T}.cs
@@ -3,10 +3,9 @@ using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Descriptors;
using ComputeSharp.D2D1.Interop;
using ComputeSharp.Interop;
+using ComputeSharp.Win32;
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.Effects;
-using TerraFX.Interop.DirectX;
-using TerraFX.Interop.Windows;
namespace ComputeSharp.D2D1.WinUI;